NavigationHistoryEntry: sameDocument property
Navigation API
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