-
Notifications
You must be signed in to change notification settings - Fork 22.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add page for
Navigation.activation
(#36442)
* Add page for `Navigation.activation` * Update files/en-us/web/api/navigation/activation/index.md Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * update --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
4ef77e0
commit 132d7ff
Showing
3 changed files
with
44 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
title: "Navigation: activation property" | ||
short-title: activation | ||
slug: Web/API/Navigation/activation | ||
page-type: web-api-instance-property | ||
status: | ||
- experimental | ||
browser-compat: api.Navigation.activation | ||
--- | ||
|
||
{{APIRef("Navigation API")}}{{SeeCompatTable}} | ||
|
||
The **`activation`** read-only property of the {{domxref("Navigation")}} interface returns a {{domxref("NavigationActivation")}} object containing information about the most recent cross-document navigation, which "activated" this Document. The property will stay constant during same-document navigations. | ||
|
||
## Value | ||
|
||
A {{domxref("NavigationActivation")}} object, or `null` if current document is the initial `about:blank` document. | ||
|
||
## Examples | ||
|
||
```js | ||
if (navigation.activation) { | ||
console.log(navigation.activation.entry.url); | ||
} | ||
``` | ||
|
||
## Specifications | ||
|
||
{{Specifications}} | ||
|
||
## Browser compatibility | ||
|
||
{{Compat}} | ||
|
||
## See also | ||
|
||
- [Modern client-side routing: the Navigation API](https://developer.chrome.com/docs/web-platform/navigation-api/) | ||
- [Navigation API explainer](https://github.com/WICG/navigation-api/blob/main/README.md) | ||
- Domenic Denicola's [Navigation API live demo](https://gigantic-honored-octagon.glitch.me/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters