NavigationHistoryEntry: sameDocument-Eigenschaft
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.
Die schreibgeschützte Eigenschaft sameDocument der NavigationHistoryEntry-Schnittstelle gibt true zurück, wenn dieser Verlaufs-Eintrag für dasselbe document wie der aktuelle Document-Wert ist und das aktuelle Dokument voll aktiv ist, oder andernfalls false.
Wert
Ein boolescher Wert.
Beispiele
js
const current = navigation.currentEntry;
console.log(current.sameDocument);
// Will always return true
Spezifikationen
| Specification |
|---|
| HTML> # dom-navigationhistoryentry-samedocument-dev> |