Create Back Button with JavaScript

You may create a back button like your browser has. The following script allows the visitor to press a button and returns the him to the previous page.

 <form>
	/* Source: http://www.apphp.com/index.php?snippet=javascript-back-button */
    <input type="button" value="Previous Page" onclick="history.go(-1)">
    </form> 

Usage


Comments

Add your comment