Window History
Window History Object
မှတ်တမ်းအရာဝတ္တု တွင် အသုံးပြုသူ (ဘရောက်ဆာဝင်းဒိုးတွင်) ဝင်ရောက်ကြည့်ရှုသည့် URL များပါရှိသည်။
history object သည် window object ၏ ပိုင်ဆိုင်မှုတစ်ခုဖြစ်သည် ။
မှတ်တမ်းအရာဝတ္တု ကို ဝင်ရောက်အသုံးပြုသည်-
window.history
သို့မဟုတ် history
:
ဥပမာများ
let length = window.history.length;
let length = history.length;
History Object Properties
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 |