PerformanceNavigation - Web APIs 编辑

This interface is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming interface instead.

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

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

Properties

The PerformanceNavigation interface doesn't inherit any properties.

This deprecated API should no longer be used, but will probably still work. PerformanceNavigation.type Read only
An unsigned 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 the Location.reload() method.
TYPE_BACK_FORWARD (2)
The page was accessed by navigating into the history.
TYPE_RESERVED (255)
Any other way.
This deprecated API should no longer be used, but will probably still work. PerformanceNavigation.redirectCount Read only
An unsigned short representing the number of REDIRECTs done before reaching the page.

Methods

The Performance interface doesn't inherit any methods.

This deprecated API should no longer be used, but will probably still work. PerformanceNavigation.toJSON()
Is a jsonizer returning a json object representing the PerformanceNavigation object.

Specifications

SpecificationStatusComment
Navigation Timing
The definition of 'PerformanceNavigation' in that specification.
RecommendationInitial definition.

Browser compatibility

BCD tables only load in the browser

See also

  • The Performance that allows access to an object of this type.
  • PerformanceNavigationTiming (part of Navigation Timing Level 2) This is an experimental API that should not be used in production code.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:133 次

字数:6826

最后编辑:7年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文