History Object
The back() method loads the previous URL in the history list.
This is the same as clicking the Back button or history.go(-1).
![]()
The back() method is supported in all major browsers.
Create a back button on a page:
The output of the code above will be:
History Object
Your message has been sent to W3Schools.