History back() method
History object
Definition and Usage
The back() method loads the previous URL in the history list (if it exists).
Calling this method is equivalent to clicking the back button or calling history.go(-1).
Syntax
history.back()
Browser support





All major browsers support the back() method
Example
Example
Create a back button on the page:
The example above produces the following output:
Try it »
History object