다음을 통해 공유


MSWebViewSettings object

Note

The features described in this document are no longer being maintained. For more information on the new WebView2 control, see Introduction to Microsoft Edge WebView2 (Preview).

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.