The PerformanceNavigation
interface represents information about how the navigtion to the current document was done.
An object of this type can be obtained by calling the {{domxref("Performance.navigation")}} read-only attribute.
Properties
The PerformanceNavigation
interface doesn't inherit any property.
- {{domxref("PerformanceNavigation.type")}} {{readonlyInline}}
-
Is an
unsigned short
containing a constant describing how the navigation to this page was done. Possible values are:Value Constant name Meaning 0
TYPE_NAVIGATE
The page was accessed by following a link, a bookmark, a form submission, a script, or typing the URL in the address bar. 1
TYPE_RELOAD
The page was accessed by clicking the Reload button or via the {{domxref("Location.reload()"}} method. 2
TYPE_BACK_FORWARD
The page was accessed by navigating into the history. 255
TYPE_RESERVED
Any other way. - {{domxref("PerformanceNavitgation.redirectCount")}} {{readonlyInline}}
-
Is an
unsigned short
representing the number of REDIRECTs done before reaching the page.
Methods
The Performance
interface doesn't inherits any method.
- {{domxref("PerformanceNavigation.toJSON()")}} {{non-standard_inline}}
-
Is a jsonizer returning a json object representing the
PerformanceNavigation
object.
Specifications
Specification | Status | Comment |
---|---|---|
{{SpecName('Navigation Timing', '#sec-navigation-info-interface', 'PerformanceNavigation')}} | {{Spec2('Navigation Timing')}} | Initial definition. |
Browser compatibility
{{CompatibilityTable}}
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|
Basic support | {{CompatNo}} | {{CompatNo}} | 9.0 | {{CompatNo}} | {{CompatNo}} |
toJSON() {{non-standard_inline}} |
{{CompatNo}} | {{CompatNo}} | 9.0 | {{CompatNo}} | {{CompatNo}} |
Feature | Android | Firefox Mobile (Gecko) | Firefox OS | IE Phone | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|
Basic support | {{CompatNo}} | {{CompatNo}} | {{CompatNo}} | 9.0 | {{CompatNo}} | {{CompatNo}} |
toJSON() {{non-standard_inline}} |
{{CompatNo}} | {{CompatNo}} | {{CompatNo}} | 9.0 | {{CompatNo}} | {{CompatNo}} |
See also
- The {{domxref("Performance")}} that allows access to an object of this type.