Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. PerformanceNavigation

PerformanceNavigation

Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see thecompatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.

The legacyPerformanceNavigation interface represents information about how the navigation to the current document was done.

Warning:This interface is deprecated in theNavigation Timing Level 2 specification.Please use thePerformanceNavigationTiming interface instead.

An object of this type can be obtained by calling thePerformance.navigation read-only attribute.

Instance properties

ThePerformanceNavigation interface doesn't inherit any properties.

PerformanceNavigation.typeRead onlyDeprecated

Anunsigned short which indicates how the navigation to this page was done. Possible values are:

TYPE_NAVIGATE (0)

The page was accessed by following a link, a bookmark, a form submission, or a script, or by typing the URL in the address bar.

TYPE_RELOAD (1)

The page was accessed by clicking the Reload button or via theLocation.reload() method.

TYPE_BACK_FORWARD (2)

The page was accessed by navigating into the history.

TYPE_RESERVED (255)

Any other way.

PerformanceNavigation.redirectCountRead onlyDeprecated

Anunsigned short representing the number of REDIRECTs done before reaching the page.

Instance methods

ThePerformance interface doesn't inherit any methods.

PerformanceNavigation.toJSON()Deprecated

Aserializer returning a JSON object representing thePerformanceNavigation object.

Specifications

Specification
Navigation Timing Level 2
# dom-performancenavigation

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp