Platforms to show: All Mac Windows Linux Cross-Platform

Next items

WKWebViewMBS.allowFileAccessFromFileURLs as Boolean
Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebKit2 MBS Mac64bit Plugin 20.0 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Function: Allow file access for file URLs.
Example:
Dim browser As WKWebViewMBS // your instance

browser.allowFileAccessFromFileURLs = True
Notes:
Access to files is allowed for some files.
Please check WebKit documentation for details.

Set allowFileAccessFromFileURLs and allowUniversalAccessFromFileURLs to true to disable all the security checks to block local file access for websites. allowUniversalAccessFromFileURLs would allow all file URLs. allowFileAccessFromFileURLs would only allow in same path.
(Read and Write property)

Feedback, Comments & Corrections

WKWebViewMBS.allowsBackForwardNavigationGestures as Boolean
Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebKit2 MBS Mac64bit Plugin 20.0 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Function: A Boolean value indicating whether horizontal swipe gestures will trigger back-forward list navigations.
Example:
Dim browser As WKWebViewMBS // your instance

browser.allowsBackForwardNavigationGestures = True
Notes:
The default value is false.
(Read and Write property)

Feedback, Comments & Corrections

WKWebViewMBS.allowsLinkPreview as Boolean
Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebKit2 MBS Mac64bit Plugin 20.0 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Function: A Boolean value that determines whether pressing on a link displays a preview of the destination for the link.
Example:
Dim browser As WKWebViewMBS // your instance

browser.allowsLinkPreview = True
Notes: (Read and Write property)

Feedback, Comments & Corrections

WKWebViewMBS.allowsMagnification as Boolean
Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebKit2 MBS Mac64bit Plugin 20.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Function: A Boolean value indicating whether magnify gestures will change the web view’s magnification.
Example:
Dim browser As WKWebViewMBS // your instance

browser.allowsMagnification = True
Notes:
The default value is false. You can set the magnification property even if allowsMagnification is set to false.
For MacOS 64-bit only.
(Read and Write property)

Feedback, Comments & Corrections

WKWebViewMBS.allowUniversalAccessFromFileURLs as Boolean
Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebKit2 MBS Mac64bit Plugin 20.0 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Function: Allow universal file access for URLs.
Notes:
Any file URL will be loaded if true.
Please check WebKit documentation for details.

Does not work in MacOS 10.14.
(Read and Write property)

Feedback, Comments & Corrections

WKWebViewMBS.backForwardList as WKWebViewMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebKit2 MBS Mac64bit Plugin 20.0 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Function: The web view's back-forward list.
Notes: (Read only property)

Feedback, Comments & Corrections

WKWebViewMBS.backgroundColor as NSColorMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebKit2 MBS Mac64bit Plugin 20.4 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Function: The background color.
Example:
Dim w As WKWebViewMBS = HTMLViewer1.WKWebViewMBS // your webviewer

w.drawsBackground = False
w.backgroundColor = NSColorMBS.clearColor
Notes:
If background is not drawn and/or transparent, you may see through.
Requires also CSS to have web view page transparent.
(Read and Write property)

Feedback, Comments & Corrections

WKWebViewMBS.CanGoBack as Boolean
Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebKit2 MBS Mac64bit Plugin 20.0 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Function: A Boolean value indicating whether there is a back item in the back-forward list that can be navigated to.
Example:
Dim browser As WKWebViewMBS // your instance

MsgBox "CanGoBack: "+If(Browser.CanGoBack, "yes", "no")
Notes: (Read only property)

Feedback, Comments & Corrections

WKWebViewMBS.CanGoForward as Boolean
Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebKit2 MBS Mac64bit Plugin 20.0 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Function: A Boolean value indicating whether there is a forward item in the back-forward list that can be navigated to.
Example:
Dim browser As WKWebViewMBS // your instance

MsgBox "CanGoForward: "+If(Browser.CanGoForward, "yes", "no")
Notes: (Read only property)

Feedback, Comments & Corrections

WKWebViewMBS.Configuration as WKWebViewConfigurationMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebKit2 MBS Mac64bit Plugin 20.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Function: Returns the configuration used to initialize the WKWebView.
Notes: (Read only property)

Feedback, Comments & Corrections

WKWebViewMBS.customUserAgent as String
Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebKit2 MBS Mac64bit Plugin 20.0 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Function: The custom user agent string.
Example:
Dim browser As WKWebViewMBS // your instance

browser.customUserAgent = "MyBrowser/1.0"
Notes:
If no custom user agent string has been set, this is set to "".
Available in 32-bit. Available in 64-bit for macOS 10.11 or newer.
(Read and Write property)

Feedback, Comments & Corrections

WKWebViewMBS.developerExtrasEnabled as Boolean
Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebKit2 MBS Mac64bit Plugin 20.0 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Function: Whether developer extras are enabled.
Example:
Dim browser As WKWebViewMBS // your instance

// enable context menu entry to show developer extras
browser.developerExtrasEnabled = True
Notes:
Enables the context menu to inspect items.
(Read and Write property)

Feedback, Comments & Corrections

WKWebViewMBS.drawsBackground as Boolean
Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebKit2 MBS Mac64bit Plugin 20.4 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Function: Whether to draw background for the view.
Example:
Dim w As WKWebViewMBS = HTMLViewer1.WKWebViewMBS // your webviewer

w.drawsBackground = False
w.backgroundColor = NSColorMBS.clearColor
Notes:
If background is not drawn and/or transparent, you may see through.
Requires also CSS to have web view page transparent.
(Read and Write property)

Feedback, Comments & Corrections

WKWebViewMBS.EstimatedProgress as Double
Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebKit2 MBS Mac64bit Plugin 20.0 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Function: An estimate of what fraction of the current navigation has been loaded.
Notes:
This value ranges from 0.0 to 1.0 based on the total number of bytes expected to be received, including the main document and all of its potential subresources. After a navigation loading completes, the estimatedProgress remains at 1.0 until a new navigation starts, at which point the estimatedProgress is reset to 0.0.
(Read only property)

Feedback, Comments & Corrections

WKWebViewMBS.hasOnlySecureContent as Boolean
Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebKit2 MBS Mac64bit Plugin 20.0 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Function: A Boolean value indicating whether all resources on the page have been loaded through securely encrypted connections.
Example:
Dim browser As WKWebViewMBS // your instance

MsgBox "hasOnlySecureContent: "+If(Browser.hasOnlySecureContent, "yes", "no")
Notes:
Only set for 64-bit, always false on 32-bit.
(Read only property)

Feedback, Comments & Corrections

WKWebViewMBS.HTTPCookieStore as WKHTTPCookieStoreMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebKit2 MBS Mac64bit Plugin 20.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Function: Convenience property to directly query HTTP cookie store for WKWebview configuration.
Notes:
Dim CookieStore As WKHTTPCookieStoreMBS = WKWebViewControlMBS1.WKWebView.HTTPCookieStore
Dim cookies() As NSHTTPCookieMBS = CookieStore.AllCookies
Dim cookie As NSHTTPCookieMBS = cookies(0)

// now check in debugger
Break
(Read only property)

Feedback, Comments & Corrections

WKWebViewMBS.IsLoading as Boolean
Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebKit2 MBS Mac64bit Plugin 20.0 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Function: A Boolean value indicating whether the view is currently loading content.
Example:
Dim browser As WKWebViewMBS // your instance

// load a page
browser.LoadURL "https://www.mbs-plugins.de"

// wait synchronously for website loading
While browser.IsLoading
DelayMBS 0.1
Wend

MsgBox "loaded"
Notes: (Read only property)

Feedback, Comments & Corrections

WKWebViewMBS.javaEnabled as Boolean
Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebKit2 MBS Mac64bit Plugin 20.0 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Function: Whether java is enabled.
Example:
Dim browser As WKWebViewMBS // your instance

MsgBox "JavaScript Enabled: "+If(Browser.javaEnabled, "yes", "no")
Notes: (Read and Write property)

Feedback, Comments & Corrections

WKWebViewMBS.javaScriptCanOpenWindowsAutomatically as Boolean
Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebKit2 MBS Mac64bit Plugin 20.0 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Function: Whether javascript can open new windows.
Example:
Dim browser As WKWebViewMBS // your instance

// disable popup windows
Browser.javaScriptCanOpenWindowsAutomatically = False
Notes: (Read and Write property)

Feedback, Comments & Corrections

WKWebViewMBS.javaScriptEnabled as Boolean
Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebKit2 MBS Mac64bit Plugin 20.0 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Function: JavaScript was evaluated.
Example:
Dim browser As WKWebViewMBS // your instance

MsgBox "JavaScript Enabled: "+If(Browser.javaScriptEnabled, "yes", "no")
Notes:
Error is only set with 64-bit, not with 32-bit.
Tag is passed from EvaluateJavaScript call.
(Read and Write property)

Feedback, Comments & Corrections

WKWebViewMBS.loadsImagesAutomatically as Boolean
Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebKit2 MBS Mac64bit Plugin 20.0 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Function: Whether to load images automatically.
Example:
Dim browser As WKWebViewMBS // your instance

// disable loading of images
browser.loadsImagesAutomatically = False
Notes: (Read and Write property)

Feedback, Comments & Corrections

WKWebViewMBS.magnification as Double
Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebKit2 MBS Mac64bit Plugin 20.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Function: The factor by which the page content is currently scaled.
Example:
Dim browser As WKWebViewMBS // your instance

browser.magnification = 2.0
Notes:
The default value is 1.0.
For MacOS 64-bit only.
(Read and Write property)

Feedback, Comments & Corrections

WKWebViewMBS.mediaType as String
Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebKit2 MBS Mac64bit Plugin 20.3 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Function: The media type for the WKWebView.
Notes:
The value of mediaType will override the normal value of the CSS media property.
Setting the value to "" will restore the normal value.
The default value is "".

Available in macOS 11.0 or newer.
(Read and Write property)

Feedback, Comments & Corrections

WKWebViewMBS.MIMEType as String
Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebKit2 MBS Mac64bit Plugin 20.3 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Function: Queries current mime type for showing document.
Notes:
Should be "text/html" for a website or "application/pdf" for a PDF document.
(Read only property)

Feedback, Comments & Corrections

WKWebViewMBS.minimumFontSize as Double
Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebKit2 MBS Mac64bit Plugin 20.0 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Function: The minimum font size to use.
Example:
Dim browser As WKWebViewMBS // your instance

browser.minimumFontSize = 20
Notes: (Read and Write property)

Feedback, Comments & Corrections

WKWebViewMBS.pageZoom as Double
Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebKit2 MBS Mac64bit Plugin 20.3 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Function: The factor by which page content is scaled relative to the viewport.
Notes:
The default value is 1.0.
Changing this value is equivalent to web content setting the CSS "zoom" property on all page content.

Available in macOS 11.0 or newer.
(Read and Write property)

Feedback, Comments & Corrections

WKWebViewMBS.plugInsEnabled as Boolean
Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebKit2 MBS Mac64bit Plugin 20.0 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Function: Whether plugins are enabled.
Example:
Dim browser As WKWebViewMBS // your instance

MsgBox "plugInsEnabled: "+If(Browser.plugInsEnabled, "yes", "no")
Notes: (Read and Write property)

Feedback, Comments & Corrections

WKWebViewMBS.Preferences as WKPreferencesMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebKit2 MBS Mac64bit Plugin 20.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Function: Convenience property to directly query HTTP cookie store for WKWebview preferences.
Notes: (Read only property)

Feedback, Comments & Corrections

WKWebViewMBS.privateBrowsing as Boolean
Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebKit2 MBS Mac64bit Plugin 20.0 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Function: Whether private browsing is enabled.
Example:
Dim browser As WKWebViewMBS // your instance

MsgBox "privateBrowsing: "+If(Browser.privateBrowsing, "yes", "no")
Notes:
If enabled, no data should be stored for cookies or cache on disk, so it's cleared when web viewer is destroyed.
Default is non-private mode for the web viewer.

It looks like you can't change mode after web viewer was created.
(Read and Write property)

Feedback, Comments & Corrections

Next items

The items on this page are in the following plugins: MBS Mac64bit Plugin.

The biggest plugin in space...




Links
MBS Xojo blog

Start Chat