Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"back" button 1

Status
Not open for further replies.

OhioSteve

MIS
Mar 12, 2002
1,352
US
I have a button with the value "back". My intention is to duplicate the action of the "back" button on the toolbar.

I can accurately guess which page they visited last, so that is not a problem. My problem is that when the user presses my "back" button, the previous page appears with EMPTY text boxes. If the user presses the real back button, it restores the previous page AND restores entries in text fields.

How do I fix this problem???

 
A slight variation on ChrisHunt's code worked for me~

<input type="button" value="previous page" name="B1" tabindex="540" onclick="history.go(-1)">

Thanks alot! I will give you a star.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top