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 Eigenschaft sameDocument der Schnittstelle NavigationHistoryEntry 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, 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

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
sameDocument
Experimental

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support
Experimental. Expect behavior to change in the future.
See implementation notes.

Siehe auch