The history object is the window property, so it can be accessed by:
There are only 1 property of history object.
|1||length||returns the length of the history URLs.|
There are only 3 methods of history object.
|1||forward()||loads the next page.|
|2||back()||loads the previous page.|
|3||go()||loads the given page number.|
Let’s see the different usage of history object.