Javascript back button:
This back button javascript will take the user back to the previous page. I added this because I saw many people searching for this script when examining my logs.
To create a javascript back button effect and to allow your visitors to go back to the previous page by clicking a link on your webpage use the below code.
If you would like to use an image as your back button you could use the code below:
<img src="image.jpg" onClick="location.replace(history.back(1))">
<a href="javascript:history.back(1)"><img src="image.jpg"></a>
Click here to go back.
|