back method (history, window)
Loads the previous page form the history list into the current window.
Works identically to the Back button of the browser application. If no previous page exists in the history, the back method has no effect. The window.back method is equivalent to the history.back method, but the window.back method is not supported by all commonly used browsers. Use the history.back for cross-browser functionality.
If you want to go forward in the window history list, use the forward method. The go(-1) can be used instead of the back method.Note: in Internet Explorer, the back and forward buttons on the toolbar are not updated after the invocation of the back and forward methods.
You can find the related objects in the Supported by objects section below.
This method has no return value.
Example HTML code 1:
This example illustrates the use of the back method.
Did you find this example helpful?
Supported by objects:
User Contributed Comments