MDN self-hosted library · e01.org

NavigationHistoryEntry: sameDocument property

Navigation API

Open notebook · 1 cells web-api-instance-property upstream source

Navigation API

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

Browser compatibility

See also