1. First Method
<a href="javascript: history.go(-1)">Go Back</a></div>
2. Second Method
<a href="##" onClick="history.go(-1); return false;">Go back</a> \
3.Third Method
<input name="action" type="submit" value="Cancel" onclick="window.history.back();"/>
if we want to more than one step back then increase
For going 2 steps back history.go(-2)
For going 3 steps back history.go(-3)
For going 4 steps back history.go(-4)
and so on.......
No comments :
Post a Comment