Javascript Essentials Part 1

Back Button (history.back) Script

Text Link
<a href="javascript:history.back(1)" target="_parent">Go back</a>
Image Link
<a href="javascript:history.back(1)" 
target="_parent">
<img src="images/this.jpg" width="100" height="20" border="0">
</a>

OR

History Back and Forward Buttons
<form>
<input type="button" value=" back " onClick="history.go(-1)">
<input type="button" value="forward" onCLick="history.go(1)">
</form>

Leave a Reply

Your email address will not be published. Required fields are marked *