JavaScript back button: Difference between revisions

From D3xt3r01.tk
Jump to navigationJump to search
New page: ==Info== Would you like to enable your visitors to click on a link to be taken back to the previous page they were on? This JavaScript will enable you to do just that. This JavaScript code...
 
mNo edit summary
 
(No difference)

Latest revision as of 11:38, 26 January 2012

Info

Would you like to enable your visitors to click on a link 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.

Code

history.go(-1)

Example

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