NavigationTransition: finished-Eigenschaft
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Die finished schreibgeschützte Eigenschaft der NavigationTransition-Schnittstelle gibt ein Promise zurück, das zu dem Zeitpunkt erfüllt wird, an dem das navigatesuccess-Ereignis ausgelöst wird, oder fehlschlägt, wenn das navigateerror-Ereignis ausgelöst wird.
Wert
Ein Promise, das auf undefined aufgelöst wird.
Beispiele
js
async function cleanupNavigation() {
await navigation.transition.finished;
// Navigation has completed successfully
// Cleanup any ongoing monitoring
}
Spezifikationen
| Specification |
|---|
| HTML> # dom-navigationtransition-finished-dev> |