WebView.SetZoom
---------------

Sets the optical scale of the webpage.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [WebView](component_WebView.md) | [4.2](newinversion42.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ✅ Yes |

MBS( "WebView.SetZoom"; WebViewerRef; Factor ) 

**MBS**( **"WebView.SetZoom";** /\* Sets the optical scale of the webpage. \*/  
**$WebViewerRef**; /\* Either the Web Viewer Object Name or the Web Viewer ID as returned by "[WebView.FindByName](WebViewFindByName.md)" function. \*/   
**$Factor**) /\* The scaling factor. Range is 10 to 1000.e.g. 50 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| WebViewerRef | Either the Web Viewer Object Name or the Web Viewer ID as returned by "[WebView.FindByName](WebViewFindByName.md)" function. |  |
| Factor | The scaling factor. Range is 10 to 1000. | 50 |

### Result

Returns OK on success or error.

### Description

Sets the optical scale of the webpage.  
This is the function for Windows. Please use [WebView.SetPageSizeMultiplier](WebViewSetPageSizeMultiplier.md), [WebView.ZoomPageIn](WebViewZoomPageIn.md) or [WebView.ZoomPageOut](WebViewZoomPageOut.md) for MacOS.  
  
See also [WebView.SetInternetExplorerHiDPI](WebViewSetInternetExplorerHiDPI.md) function.  
Supported for Windows in FileMaker 19.4 to work with WebViewers with Edge engine.  
### Examples

Zooms page out:

 Set Variable \[ $r ; MBS ("Webview.setZoom"; "web"; 50) \]  
### See also

- [WebView.FindByName](WebViewFindByName.md)
- [WebView.GetForm](WebViewGetForm.md)
- [WebView.GetIcon](WebViewGetIcon.md)
- [WebView.GetZoom](WebViewGetZoom.md)
- [WebView.SetFocus](WebViewSetFocus.md)
- [WebView.SetInternetExplorerHiDPI](WebViewSetInternetExplorerHiDPI.md)
- [WebView.SetPageSizeMultiplier](WebViewSetPageSizeMultiplier.md)
- [WebView.ZoomPageIn](WebViewZoomPageIn.md)
- [WebView.ZoomPageOut](WebViewZoomPageOut.md)

### Release notes

- **Version 15.4**
    - Implemented [WebView.SetZoom](https://www.mbsplugins.eu/WebViewSetZoom.shtml) and [WebView.GetZoom](https://www.mbsplugins.eu/WebViewGetZoom.shtml) for macOS and iOS.

### Example Databases

- [WebViewer/WebViewer Copy Text](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/WebViewer/WebViewer%20Copy%20Text.shtml#3ScriptAnchor_)

### Blog Entries

- [Neues MBS Plugin 15.4 für Claris FileMaker](https://www.mbsplugins.de/archive/2025-09-09/Neues_MBS_Plugin_154_für_Clar/monkeybreadsoftware_blog_filemaker)
- [MBS Plugin 15.4 for Claris FileMaker](https://www.mbsplugins.de/archive/2025-09-09/MBS_Plugin_154_for_Claris_File/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 15.4pr4](https://www.mbsplugins.de/archive/2025-08-25/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [MBS Filemaker Plugin, version 4.2pr1](https://www.mbsplugins.de/archive/2014-04-02/MBS_Filemaker_Plugin_version_4/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 18th August 2014 , last changed 24th August 2025

  
[WebView.SetWidth](WebViewSetWidth.md) - [WebView.ShowDebugBar](WebViewShowDebugBar.md)

[HTML Version](WebViewsetZoom.shtml)