विंडो इतिहास
विंडो इतिहास वस्तु
इतिहास वस्तु में उपयोगकर्ता द्वारा देखे गए URL (ब्राउज़र विंडो में) होते हैं।
इतिहास वस्तु विंडो वस्तु की एक संपत्ति है ।
इतिहास वस्तु के साथ पहुँचा है:
window.history
या बस history
:
उदाहरण
let length = window.history.length;
let length = history.length;
इतिहास वस्तु गुण
Property | Description |
---|---|
length | Returns the number of URLs (pages) in the history list |
इतिहास वस्तु के तरीके
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 |