NavigationTransition
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Experimentell: Dies ist eine experimentelle Technologie
Überprüfen Sie die Browser-Kompatibilitätstabelle sorgfältig vor der Verwendung auf produktiven Webseiten.
Das NavigationTransition
-Interface der Navigation API repräsentiert eine laufende Navigation, das heißt, eine Navigation, die noch nicht das Stadium navigatesuccess
oder navigateerror
erreicht hat.
Es wird über die Eigenschaft Navigation.transition
abgerufen.
Instanzeigenschaften
finished
Schreibgeschützt Experimentell-
Gibt ein
Promise
zurück, das erfüllt wird, wenn dasnavigatesuccess
-Ereignis ausgelöst wird, oder abgelehnt wird, wenn dasnavigateerror
-Ereignis ausgelöst wird. from
Schreibgeschützt Experimentell-
Gibt das
NavigationHistoryEntry
zurück, von dem der Übergang ausgeht. -
Gibt den Typ der laufenden Navigation zurück.
Beispiele
async function cleanupNavigation() {
await navigation.transition.finished;
// Navigation has completed successfully
// Cleanup any ongoing monitoring
}
Spezifikationen
Specification |
---|
HTML # navigationtransition |
Browser-Kompatibilität
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
NavigationTransition | ||||||||||||
finished | ||||||||||||
from | ||||||||||||
navigationType |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
- Experimental. Expect behavior to change in the future.
- See implementation notes.