Question:What is history object? Write methods of it.
Answer
history object: 1. The history object is a property of the window object. It has a single property name length.
2. The history object contains the URLs visited by the user (within a browser window).
functions: 1. back() - Loads the previous URL in the history list.
2. forward() - Loads the next URL in the history list.
3. go() - Loads a specific URL from the history list.