NavigationTransition: finished-Eigenschaft
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.
Die schreibgeschützte Eigenschaft finished
des NavigationTransition
-Interfaces gibt ein Promise
zurück, das sich erfüllt, wenn das navigatesuccess
-Ereignis ausgelöst wird, oder abgelehnt wird, wenn das navigateerror
-Ereignis ausgelöst wird.
Wert
Ein Promise
, das sich zu undefined
auflöst.
Beispiele
async function cleanupNavigation() {
await navigation.transition.finished;
// Navigation has completed successfully
// Cleanup any ongoing monitoring
}
Spezifikationen
Specification |
---|
HTML # dom-navigationtransition-finished-dev |
Browser-Kompatibilität
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
finished |
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.