Search This Blog

Dec 29, 2010

Back to previous link

All browsers that I know have the capability to take the visitors to be taken back to the previous page they went on (the back button).


But what if you want to include this functionality in your HTML content? Such as when you were dealing with multi tips, step by step procedures and instruction or an image slide show.


Add this javascript code to your anchor tag : "javascript:history.go(-1)" .
Example:

<a href="javascript: history.go(-1)"<Back</a>
The code denotes that it will go back -1 page. You can change the number to any page history like -2 and so on.

0 comments: