Switch to full style
HTML,DHTML,Javascript,XML,CSS
Post a reply

Back to previous page javascript code

Sun Oct 19, 2008 11:37 pm

Would you like to enable your visitors to click on a button to be taken back to the previous page they were on? This JavaScript will enable you to do just that. This JavaScript code is great for use in pop up windows when you're running image slide shows, displaying multiple tips, step by step instructions or whatever you'd like.

Copy and paste this code into your HTML where you would like the button to appear:
Code:
<form>
<
input type="button" value="Back to Previous Page"
onClick="javascript: history.go(-1)">
</
form


Using this little JavaScript snippet is a great way to enable your visitors to navigate your web site.



Post a reply
  Related Posts  to : Back to previous page javascript code
 go to previous page using JavaScript     -  
 Redirect to a New Page javascript code     -  
 Call PHP code from JSP Page     -  
 Javascript code with Unity3D     -  
 Preloading Images javascript code     -  
 First Visit Pop Up Window javascript code     -  
 Reload a Window With a Button javascript code     -  
 Typing Status Bar Text javascript code     -  
 Status Bar Link Description javascript code     -  
 Javascript Code For Moving Images On Click Of A Button     -  

Topic Tags

JavaScript Functions