NavigationHistoryEntry: sameDocument property

Baseline 2026
Newly available

Since ⁨January 2026⁩, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.

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

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

Specifications

Specification
HTML
# dom-navigationhistoryentry-samedocument-dev

Browser compatibility

See also