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 |
---|
Service Workers 1 # client-navigate |
Browser compatibility
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
navigate |
49 |
17 |
44
Extended Support Releases (ESR) before Firefox 78 ESR do not support service workers and the Push API.
|
No |
? |
11.1 |
No |
49 |
44 |
? |
11.3 |
4.0 |
© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/WindowClient/navigate