Navigation: activation property

Limited availability

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

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The activation read-only property of the Navigation interface returns a NavigationActivation object containing information about the most recent cross-document navigation, which "activated" this Document. The property will stay constant during same-document navigations.

Value

A NavigationActivation object, or null if current document is the initial about:blank document.

Examples

js
if (navigation.activation) {
  console.log(navigation.activation.entry.url);
}

Specifications

Specification
HTML Standard
# dom-navigation-activation

Browser compatibility

BCD tables only load in the browser

See also