WebView.DisableJavascriptAlerts
-------------------------------

Disables alert() command in Javascript.

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

MBS( "WebView.DisableJavascriptAlerts" ) ### Parameters

none

### Result

Returns "OK" on success.

### Description

Disables alert() command in Javascript.  
Call this once on your FileMaker solution in the startup script.  
  
Added support for FileMaker 16 in plugin version 7.1  
### Examples

Disable alerts:

 $error = MBS ( "WebView.DisableJavascriptAlerts" )  
### Example Databases

- [WebViewer/Disable Javascript alerts on Webviewer Mac](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/WebViewer/Disable%20Javascript%20alerts%20on%20Webviewer%20Mac.shtml#6ScriptAnchor_)

### Blog Entries

- [WebViewer preferences](https://www.mbsplugins.de/archive/2021-01-21/WebViewer_preferences/monkeybreadsoftware_blog_filemaker)
- [MBS Filemaker Plugin, version 2.5pr5](https://www.mbsplugins.de/archive/2012-01-14/MBS_Filemaker_Plugin_version_2/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 18th August 2014 , last changed 26th February 2017

  
[WebView.Cut](WebViewCut.md) - [WebView.EstimatedProgress](WebViewEstimatedProgress.md)

[HTML Version](WebViewDisableJavascriptAlerts.shtml)