Moving to previous page in browser using Java Script
In Category JavaScript
history.go method in Java Script can be used to make the browser go back to previous page in history. This can be invoked using a normal link or on click of a button. The following examples show how to do that.
Go to last page if a link is clicked:
<a href="javascript: history.go(-1)">Back</a>
Go to last page if a button is clicked:
<input type="button" value="Back to Previous Page"
onClick="javascript: history.go(-1)">
Recent Comments