How to get info about history object in JavaScript

1 Answer

0 votes
console.log(window.history);
 
 
 
 
/*
run:

[object History] {
  back: function back() {
    [native code]
},
  forward: function forward() {
    [native code]
},
  go: function go() {
    [native code]
},
  length: 50,
  pushState: function pushState() {
    [native code]
},
  replaceState: function replaceState() {
    [native code]
},
  scrollRestoration: "auto",
  state: null
}
  
*/

 



answered May 31, 2023 by avibootz

Related questions

1 answer 163 views
1 answer 134 views
1 answer 169 views
169 views asked Jan 14, 2017 by avibootz
1 answer 178 views
...