# WebViewPreferencesObject
The parameter passed to the preferences method.
NOTE
This is an abstract type. Any object of this structure can be used where this type is used.
# Examples
# Usage of WebViewConfiguration with WebView in iOS
Creates a configuration object and use it as property of webview.
var config = Ti.UI.iOS.createWebViewConfiguration({
allowsPictureInPictureMediaPlayback: true,
preferences: {
minimumFontSize : 20,
},
});
var webView = Ti.UI.createWebView({
configuration: config,
url: 'https://www.google.com'
});
var window = Ti.UI.createWindow();
window.add(webView);
window.open();
# Properties
# javaScriptCanOpenWindowsAutomatically
javaScriptCanOpenWindowsAutomatically :Boolean
A Boolean value indicating whether JavaScript can open windows without user interaction.
Default: false
# javaScriptEnabled
javaScriptEnabled :Boolean
A Boolean value indicating whether JavaScript is enabled.
Setting this property to false disables JavaScripts that are loaded or executed by the web page. This setting does not affect user scripts.
Default: true