Goto Previous Webpages using Javascript

by Sasikumar 2014-04-07 15:37:03

To goto previous webpages use the following methods:
Method 1:
<a href="javascript: history.go(-1)">Go Back</a>

Method 2:
<a href="##" onClick="history.go(-1); return false;">Go back</a>


note: to go 2 webpages back history.go(-2), to go 3 webpages back history.go(-3), to go 4 webpages back history.go(-4)
and so on....... can be used.
1066
like
0
dislike
0
mail
flag

You must LOGIN to add comments