Textfield highlight on focus javascript redirect
May 01

This can be done in many different ways, for instance like this:

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

or with a form like this

 
<form>
<input type="button" value="Click here to go back"
onClick="history.back()" />
</form>
 

the history parameter can be set, to for instance 1 or -1 one.. reflecting the movement forward or backward in the history of the browsed pages.

 
history.go(-1) or history.go(1)
 

Leave a Reply