NavigationPrecommitController

The NavigationPrecommitController interface of the Navigation API defines redirect behavior for a navigation precommit handler.

MDN Reference

Functions

Link copied to clipboard
fun redirect(url: String, options: NavigationNavigateOptions = definedExternally)

The redirect() method of the NavigationPrecommitController interface redirects the browser to a specified URL and specifies history behavior and any desired state information.

fun redirect(url: URL, options: NavigationNavigateOptions = definedExternally)