dom / latest / windowclient / navigate.html /

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

navigate(url)

Parameters

url

The location to navigate to.

Return value

A Promise that resolves to the existing WindowClient.

Specifications

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
36
11.1
This method exists, but always throws NotSupportedError.
42
49
44
36
11.3
This method exists, but always throws NotSupportedError.
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