C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
JavaScript History ObjectThe JavaScript history object represents an array of URLs visited by the user. By using this object, you can load previous, forward or any particular page. The history object is the window property, so it can be accessed by: window.history Or, history Property of JavaScript history object
There are only 1 property of history object.
Methods of JavaScript history object
There are only 3 methods of history object.
Example of history object
Let’s see the different usage of history object. history.back();//for previous page history.forward();//for next page history.go(2);//for next 2nd page history.go(-2);//for previous 2nd page
Next TopicJavaScript Navigator Object
|