Cronologia delle finestre
L'oggetto Cronologia delle finestre
L' oggetto cronologia contiene gli URL visitati dall'utente (nella finestra del browser).
L' oggetto cronologia è una proprietà dell'oggetto finestra .
L' oggetto cronologia è accessibile con:
window.history
o semplicemente history
:
Esempi
let length = window.history.length;
let length = history.length;
Proprietà dell'oggetto storico
Property | Description |
---|---|
length | Returns the number of URLs (pages) in the history list |
Metodi dell'oggetto della storia
Method | Description |
---|---|
back() | Loads the previous URL (page) in the history list |
forward() | Loads the next URL (page) in the history list |
go() | Loads a specific URL (page) from the history list |