/

HTML / CSS / JavaScript Tutorial

JavaScript History method: back()

[this page | pdf | back links]

The back() method (when applied to History objects in the JavaScript BOM) loads the previous URL in the history list. It is the same as clicking the back button in the browser or applying the history.go(-1) method.

 

It has the following syntax with no parameters. It does not return a value.

 

history.back()

 


NAVIGATION LINKS
Contents | Prev | Next | JavaScript DOM (and BOM)


Desktop view | Switch to Mobile