NavigationHistoryEntry: sameDocument-Eigenschaft
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Experimentell: Dies ist eine experimentelle Technologie
Überprüfen Sie die Browser-Kompatibilitätstabelle sorgfältig vor der Verwendung auf produktiven Webseiten.
Die schreibgeschützte sameDocument-Eigenschaft der NavigationHistoryEntry-Schnittstelle gibt true zurück, wenn dieser Verlaufseintrag für dasselbe document wie der aktuelle Document-Wert ist und das aktuelle Dokument vollständig aktiv ist, oder false andernfalls.
Wert
Ein Boolean.
Beispiele
js
const current = navigation.currentEntry;
console.log(current.sameDocument);
// Will always return true
Spezifikationen
| Specification |
|---|
| HTML> # dom-navigationhistoryentry-samedocument-dev> |
Browser-Kompatibilität
Loading…