Pencere Geçmişi
Pencere Geçmişi Nesnesi
Geçmiş nesnesi , kullanıcı tarafından ziyaret edilen URL'leri içerir (tarayıcı penceresinde).
Geçmiş nesnesi , pencere nesnesinin bir özelliğidir .
Geçmiş nesnesine şu şekilde erişilir:
window.history
veya sadece history
:
Örnekler
let length = window.history.length;
let length = history.length;
Geçmiş Nesne Özellikleri
Property | Description |
---|---|
length | Returns the number of URLs (pages) in the history list |
Geçmiş Nesne Yöntemleri
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 |