Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. NavigationTransition

NavigationTransition

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Experimental:This is anexperimental technology
Check theBrowser compatibility table carefully before using this in production.

TheNavigationTransition interface of theNavigation API represents an ongoing navigation, that is, a navigation that hasn't yet reached thenavigatesuccess ornavigateerror stage.

It is accessed via theNavigation.transition property.

Instance properties

finishedRead onlyExperimental

Returns aPromise that fulfills at the same time thenavigatesuccess event fires, or rejects at the same time thenavigateerror event fires.

fromRead onlyExperimental

Returns theNavigationHistoryEntry that the transition is coming from.

navigationTypeRead onlyExperimental

Returns the type of the ongoing navigation.

Examples

js
async function cleanupNavigation() {  await navigation.transition.finished;  // Navigation has completed successfully  // Cleanup any ongoing monitoring}

Specifications

Specification
HTML
# navigationtransition

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp