Namespace: browsing

airlock.browsing

Allows modification of the user's web browsing experience.
Source:

Methods

(static) getNavigationErrorAction(urlopt) → {airlock.networking.NavigationErrorAction}

Gets the navigation error action associate with the URL, if specified. If a URL is not specified, the navigation error action for the current remote web application is returned. And, if that is not specified, the browser's navigation error action setting is returned.
Parameters:
Name Type Attributes Description
url string <optional>
The URL of the page for which to determine the navigation error action. Can be undefined.
Source:
Returns:
The error action that is employed when a navigation error occurs.
Type
airlock.networking.NavigationErrorAction

(static) getTextZoomLevel() → {number}

Gets the text zoom level for the page, which is a positive floating point number, where 1.0 is normal size. 2.0 is double the normal size.
Source:
Returns:
The text zoom level, which is greater than 0; where 1.0 is normal size.
Type
number

(static) setNavigationErrorAction(actionopt, urlopt)

Sets the navigation error action associate with the specified URL. If a URL is not specified, the navigation error action for the current remote web application is returned. And, if that is not specified, the browser's navigation error action setting is returned.
Parameters:
Name Type Attributes Description
action airlock.networking.NavigationErrorAction <optional>
The action to perform when a navigation error occurs.
url string <optional>
The URL of the page for which to determine the navigation error action. Can be undefined.
Source:
Example
// Prevent navigation from a page with a broken link.
airlock.browsing.setNavigationErrorAction(
		airlock.networking.NavigationErrorAction.PREVENT_NAVIGATION,
		"http://www.example.com/PageWith404.html");

(static) setTextZoomLevel(level)

Sets the text zoom level for the page, which is a positive floating point number, where 1.0 is normal size. 2.0 is double the normal size. The specified value is clamped between 0.1 and 5.0.
Parameters:
Name Type Description
level number The text zoom level, which is greater than 0; where 1.0 is normal size.
Source: