Go back to previous page using javascript

If you like to enable your visitors to go back to the previous page by clicking back button in your websites. use this code

Copy and paste this code into your HTML
<input type="button" value="Back to Previous Page" onClick="javascript: history.go(-1)">

Go Back to previous page with a simple link

<a href="javascript: history.go(-1)">Back</a>

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...