NavigationPrecommitController
The NavigationPrecommitController interface of the Navigation API is passed as an argument to a navigation precommit handler callback.
Methods
addHandler()
addHandler(handler): void;
The addHandler() method of the NavigationPrecommitController interface allows you to dynamically add a handler callback function in precommit code, which will then be run after the navigation has committed.
Parameters
| Parameter | Type |
|---|---|
handler | NavigationInterceptHandler |
Returns
void
redirect()
redirect(url, options?): void;
The redirect() method of the NavigationPrecommitController interface redirects the browser to a specified URL and specifies history behavior and any desired state information.
Parameters
| Parameter | Type |
|---|---|
url | string | URL |
options? | NavigationNavigateOptions |
Returns
void