PerformanceNavigation.type
Attention :
Cette interface est dépréciée dans la spécification Navigation Timing Level 2. Veuillez utiliser la propriété PerformanceNavigationTiming.type
de l'interface PerformanceNavigationTiming
à la place.
L'ancienne propriété PerformanceNavigation.type
en lecture seule renvoie un unsigned short
contenant une constante décrivant comment la navigation vers cette page a été effectuée. Les valeurs possibles sont :
Valeur | Nom de la constante | Signification |
---|---|---|
0 |
TYPE_NAVIGATE |
La page a été consultée en suivant un lien, un signet, un formulaire, un script ou en tapant l'URL dans la barre d'adresse. |
1 |
TYPE_RELOAD |
La page a été consultée en cliquant sur le bouton Recharger ou via la méthode Location.reload() . |
2 |
TYPE_BACK_FORWARD |
La page a été consultée en naviguant dans l'historique. |
255 |
TYPE_RESERVED |
De toute autre manière. |
Syntaxe
js
let type = performanceNavigation.type;
Spécifications
Specification |
---|
Navigation Timing Level 2 # dom-performancenavigation-type |
Compatibilité des navigateurs
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
type |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- Deprecated. Not for use in new websites.
- See implementation notes.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Voir aussi
- L'interface
PerformanceNavigation
à laquelle il appartient.