Navigation: activation-Eigenschaft
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Die schreibgeschützte activation-Eigenschaft des Navigation-Interfaces gibt ein NavigationActivation-Objekt zurück, das Informationen über die letzte dokumentübergreifende Navigation enthält, die dieses Dokument "aktiviert" hat. Die Eigenschaft bleibt bei gleiches-Dokument-Navigationen konstant.
Wert
Ein NavigationActivation-Objekt oder null, wenn das aktuelle Dokument das anfängliche about:blank-Dokument ist.
Beispiele
js
if (navigation.activation) {
console.log(navigation.activation.entry.url);
}
Spezifikationen
| Specification |
|---|
| HTML> # dom-navigation-activation> |