Edit

WebViewControl (window, item, commandString)

Sets options on a custom web view control in a window. commandString is a string consisting of a command followed by parameters in the form name='value'. Currently the only command is options and the available options are openLinksInExternalBrowser and wantCallbacks which take a value of 'true' or 'false' (all case-sensitive).

Also, on Mac allowBackForward, and on Windows with v9.0.3 and leter: reportErrors.

Examples: 

WebViewControl(w, "L_WEB", "options openLinksInExternalBrowser='true'")

WebViewControl(w, "L_WEB", "options openLinksInExternalBrowser='false'")

WebViewControl(w, "L_WEB", "options wantURLCallback='true'")

WebViewControl(w, "L_WEB", "options wantURLCallback='false'")

WebViewControl(w, "L_WEB", "options allowBackForward='true'") // Mac

WebViewControl(w, "L_WEB", "options allowBackForward='false'")

WebViewControl(w, "L_WEB", "options reportErrors='true'") // Win

WebViewControl(w, "L_WEB", "options reportErrors='false'")

The openLinksInExternalBrowser setting determines whether opening a link will open it in the webview control itself or in an external browser. Note that on Windows, this also controls whether iframes open inline or externally. If you are displaying a web page that contains iframes on Windows, you will need to set the option to false at least until the page has been loaded. You may then set the option to true. Even better, avoid content with iframes on Windows.

Availability:  available within MWScript handlers in MoneyWorks 8 and later. The wantURLCallback option requires v8.1

See Also:

LoadHTMLInWebView: Load HTML into a custom web view control

LoadURLInWebView: Load a URL into a custom web view control