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
```js
const current = navigation.currentEntry;
console.log(current.sameDocument);
// Will always return true
```
## Specifications
## Browser compatibility
## See also
- [Modern client-side routing: the Navigation API](https://developer.chrome.com/docs/web-platform/navigation-api/)
- [Navigation API explainer](https://github.com/WICG/navigation-api/blob/main/README.md)
source: MDN Web Docs mirror · page
Cite this
"NavigationHistoryEntry: sameDocument property". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/Web/API/NavigationHistoryEntry/sameDocument JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy