What is the use of history object?

What is the use of history object?

The history object contains the URLs visited by the user (within a browser window). The history object is part of the window object and is accessed through the window. history property. You can read more about it here.