JavaScript Back Button

 

This is a simple script which demon straights how to create a back button/text link using JavaScript.

 

 

Example

 

Text version

Back

 

Button version

 

 

Script Source

 

<The Button Link >

<input type=button value="Back" onClick="history.go(-1)">

 

<The Text Link >

<a href="#" onClick="history.go(-1)">Back</a>

 

Please let me know if this script was helpful to you.

[rating]