WindowClient: navigate() Methode
Hinweis: Diese Funktion ist nur in Service Workers verfügbar.
Die navigate()
Methode der WindowClient
-Schnittstelle lädt eine angegebene URL in eine kontrollierte Client-Seite und gibt dann ein Promise
zurück, das zum vorhandenen WindowClient
aufgelöst wird.
Syntax
js
navigate(url)
Parameter
url
-
Der Ort, zu dem navigiert werden soll.
Rückgabewert
Ein Promise
, das zum vorhandenen WindowClient
aufgelöst wird, wenn die URL vom gleichen Ursprung wie der Service Worker stammt, oder null
, andernfalls.
Spezifikationen
Specification |
---|
Service Workers # client-navigate |
Browser-Kompatibilität
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
navigate |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- Partial support
- Partial support
- No support
- No support
- Has more compatibility info.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.