Firefox Tomorrow

web api instance property

NavigationHistoryEntry: sameDocument property

View on MDN ↗

The sameDocument read-only property of the NavigationHistoryEntry interface returns true if this history entry is for the same document as the current Document value and current document is fully active, or false otherwise.

Value

A boolean.

Examples

const current = navigation.currentEntry;
console.log(current.sameDocument);
// Will always return true

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.

See also