Dieser Inhalt wurde automatisch aus dem Englischen übersetzt, und kann Fehler enthalten. Erfahre mehr über dieses Experiment.
NavigationHistoryEntry: sameDocument-Eigenschaft
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used 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> |
Browser-Kompatibilität
Enable JavaScript to view this browser compatibility table.