Allows modification of the user's web browsing experience.
- Source:
Members
(static, readonly) NavigationErrorAction :number
Enum for navigation error action.
Type:
- number
Properties:
Name | Type | Description |
---|---|---|
REDIRECT_TO_ERROR_PAGE |
number | Displays the error page. |
PREVENT_NAVIGATION |
number | Prevents navigation to the page and does not display an error. |
- Source:
Methods
(static) getNavigationErrorAction(urlopt) → {airlock.browsing.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.
(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.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
action |
airlock.browsing.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.browsing.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: