WebView.LoadJavascriptURL
-------------------------

Loads the given JavaScript 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.LoadJavascriptURL"; WebViewerRef; URL ) 

**MBS**( **"WebView.LoadJavascriptURL";** /\* Loads the given JavaScript URL into the WebViewer. \*/  
**$WebViewerRef**; /\* Either the Web Viewer Object Name or the Web Viewer ID as returned by "[WebView.FindByName](WebViewFindByName.md)" function. \*/   
**$URL**) /\* The URL to load. URL Escapes are expected to be in UTF-8. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| WebViewerRef | Either the Web Viewer Object Name or the Web Viewer ID as returned by "[WebView.FindByName](WebViewFindByName.md)" function. |  |
| URL | The URL to load. URL Escapes are expected to be in UTF-8. |  |

### Description

Loads the given JavaScript URL into the WebViewer.   
This method is for URLs starting with "javascript:".  
### See also

- [WebView.FindByName](WebViewFindByName.md)

### Example Databases

- [WebViewer/WebViewer LoadURL](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/WebViewer/WebViewer%20LoadURL.shtml#1GroupButton6.00000006.000000031.0000000399.0000000LayoutObjectAnchor_)

This function checks for a license.

Created 18th August 2014 , last changed 4th November 2021

  
[WebView.LoadHTML](WebViewLoadHTML.md) - [WebView.LoadURL](WebViewLoadURL.md)

[HTML Version](WebViewLoadJavascriptURL.shtml)