WindowClient.navigate()

The navigate() method of the WindowClient interface loads a specified URL into a controlled client page then returns a Promise that resolves to the existing WindowClient.

Syntax

windowClient.navigate(url).then(function(windowClient) {
  // do something with your WindowClient after navigation
});

Parameters

url
The location to navigate to.

Return value

A Promise that resolves to the existing WindowClient.

Specifications

Specification Status Comment
Service Workers
The definition of 'navigate()' in that specification.
Working Draft Initial definition.

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
navigate
Experimental
Chrome Full support 49Edge Full support ≤18Firefox Full support 44
Notes
Full support 44
Notes
Notes Extended Support Releases (ESR) before Firefox 78 ESR do not support service workers and the Push API.
IE No support NoOpera ? Safari No support NoWebView Android No support NoChrome Android Full support 49Firefox Android Full support 44Opera Android ? Safari iOS No support NoSamsung Internet Android Full support 4.0

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown
Experimental. Expect behavior to change in the future.
Experimental. Expect behavior to change in the future.
See implementation notes.
See implementation notes.