WebView.LoadURL
---------------

Loads the given URL into the WebViewer.

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

MBS( "WebView.LoadURL"; WebViewerRef; URL { ; cachePolicy; timeoutInterval } ) 

**MBS**( **"WebView.LoadURL";** /\* Loads the given URL into the WebViewer. \*/  
**$WebViewerRef**; /\* Either the Web Viewer Object Name or the Web Viewer ID as returned by "[WebView.FindByName](WebViewFindByName.md)" function.e.g. "web" \*/   
**$URL**; /\* The URL to load.e.g. "http://www.mbsplugins.eu/" \*/   
**$cachePolicy**; /\* Optional; The cache policy. Can be 0 for default, 1 for ignoring local cache, 2 return cache data else load, 3 to return cache data and don't load. (Mac only)e.g. 1 \*/   
**$timeoutInterval**) /\* Optional; The timeout interval. (Mac only)e.g. 120.0 \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| WebViewerRef | Either the Web Viewer Object Name or the Web Viewer ID as returned by "[WebView.FindByName](WebViewFindByName.md)" function. | "web" |  |
| URL | The URL to load. | "http://www.mbsplugins.eu/" |  |
| cachePolicy | The cache policy. Can be 0 for default, 1 for ignoring local cache, 2 return cache data else load, 3 to return cache data and don't load. (Mac only) | 1 | Optional |
| timeoutInterval | The timeout interval. (Mac only) | 120.0 | Optional |

### Result

Returns "OK" on success.

### Description

Loads the given URL into the WebViewer.   
In FileMaker 10 (or newer) you can only use LoadURL with a WebViewer where FileMaker loaded an URL before. This can be "about:blank".  
On Mac and iOS you can specify optionally the timeout and cache policy.  
### Examples

Load website from cache only with 2 minutes timeout:

 MBS ("WebView.LoadURL"; "web"; "http://www.monkeybreadsoftware.com/"; 3; 120)  
Load data URL:

 MBS ( "Webview.LoadURL"; "web"; "data:image/svg+xml;charset=utf-8," &amp; MBS ( "[Text.EncodeURLComponent](TextEncodeURLComponent.md)"; $svgData ); "utf8"))  
### See also

- [Overlay.AddWebViewer](OverlayAddWebViewer.md)
- [Text.EncodeURLComponent](TextEncodeURLComponent.md)
- [WebView.Create](WebViewCreate.md)
- [WebView.CreateWindow](WebViewCreateWindow.md)
- [WebView.CreateWithControl](WebViewCreateWithControl.md)
- [WebView.FindByName](WebViewFindByName.md)
- [WebView.GetURL](WebViewGetURL.md)
- [WebView.LoadHTML](WebViewLoadHTML.md)
- [WebView.PostURL](WebViewPostURL.md)
- [WebView.PrintToFile](WebViewPrintToFile.md)

### Example Databases

- [CURL/Email/GMail oAuth SMTP](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/CURL/Email/GMail%20oAuth%20SMTP.shtml#1ScriptAnchor_)
- [CURL/Email/Office 365 oAuth SMTP](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/CURL/Email/Office%20365%20oAuth%20SMTP.shtml#1ScriptAnchor_)
- [Overlay](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Overlay.shtml#14ScriptAnchor_)
- [WebViewer/Custom WebView](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/WebViewer/Custom%20WebView.shtml#1ScriptAnchor_)
- [WebViewer/WebViewer LoadURL](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/WebViewer/WebViewer%20LoadURL.shtml#1GroupButton6.0000000410.000000031.0000000683.0000000LayoutObjectAnchor_)
- [WebViewer/WebViewer on Popover](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/WebViewer/WebViewer%20on%20Popover.shtml#1ScriptAnchor_)

### Blog Entries

- [Creating Custom Web Viewer Windows in FileMaker with MBS Plugin](https://www.mbsplugins.de/archive/2026-05-11/Creating_Custom_Web_Viewer_Win/monkeybreadsoftware_blog_filemaker)
- [Using Gmail with oAuth2 for SMTP with MBS Plugin](https://www.mbsplugins.de/archive/2025-05-08/Using_Gmail_with_oAuth2_for_SM/monkeybreadsoftware_blog_filemaker)
- [Add a WebViewer to an Overlay window](https://www.mbsplugins.de/archive/2024-11-13/Add_a_WebViewer_to_an_Overlay_/monkeybreadsoftware_blog_filemaker)
- [SMTP with OAuth for Office 365 in FileMaker](https://www.mbsplugins.de/archive/2022-11-22/SMTP_with_OAuth_for_Office_365/monkeybreadsoftware_blog_filemaker)
- [Transitioning scripts for WebView2](https://www.mbsplugins.de/archive/2021-07-08/Transitioning_scripts_for_WebV/monkeybreadsoftware_blog_filemaker)
- [New in the MBS FileMaker Plugin 10.1](https://www.mbsplugins.de/archive/2020-03-17/New_in_the_MBS_FileMaker_Plugi/monkeybreadsoftware_blog_filemaker)
- [FileMaker and WebViewer communication](https://www.mbsplugins.de/archive/2018-08-24/FileMaker_and_WebViewer_commun/monkeybreadsoftware_blog_filemaker)
- [Print WebViewer on macOS in FileMaker](https://www.mbsplugins.de/archive/2017-11-28/Print_WebViewer_on_macOS_in_Fi/monkeybreadsoftware_blog_filemaker)
- [MBS Filemaker Plugin, version 2.7fc](https://www.mbsplugins.de/archive/2012-05-08/MBS_Filemaker_Plugin_version_2/monkeybreadsoftware_blog_filemaker)
- [MBS Filemaker Plugin 2.7 Release notes](https://www.mbsplugins.de/archive/2012-05-08/MBS_Filemaker_Plugin_27_Releas/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 4/2025, Seite 30](https://filemaker-magazin.de/neuigkeit/4297-Appetithappen-FMM_202504)
- [Ausgabe 3/2024, Seite 34](https://filemaker-magazin.de/neuigkeit/4263-Appetithappen-FMM_202403)
- [Ausgabe 3/2024, Seite 30](https://filemaker-magazin.de/neuigkeit/4263-Appetithappen-FMM_202403)

This function checks for a license.

Created 18th August 2014 , last changed 4th March 2023

  
[WebView.LoadJavascriptURL](WebViewLoadJavascriptURL.md) - [WebView.MakeTextLarger](WebViewMakeTextLarger.md)

[HTML Version](WebViewLoadURL.shtml)