MSWebViewSettings object

Defines properties that enable or disable webview features.

Properties

isIndexedDBEnabled

Gets or sets a value that indicates whether the use of IndexedDB is allowed in the webview.

var isIndexedDBEnabled = MSWebViewSettings.isIndexedDBEnabled;
MSWebViewSettings.isIndexedDBEnabled = isIndexedDBEnabled;

Property value

Type: boolean

True if IndexedDB is allowed in the webview; otherwise, false.

isJavaScriptEnabled

Gets or sets a value that indicates whether the use of JavaScript is allowed in the webview.

var isJavaScriptEnabled = MSWebViewSettings.isJavaScriptEnabled;
MSWebViewSettings.isJavaScriptEnabled = isJavaScriptEnabled;

Property value

Type: boolean

True JavaScript is allowed in the webview; otherwise, false.

isScriptNotifyAllowed

Gets or sets a value that indicates whether the use of ScriptNotifyEvent is allowed in the webview.

var isScriptNotifyAllowed = MSWebViewSettings.isScriptNotifyAllowed;
MSWebViewSettings.isScriptNotifyAllowed = isScriptNotifyAllowed;

Property value

Type: boolean

True ScriptNotifyEvent is allowed in the webview; otherwise, false.