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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

javascript history

Status
Not open for further replies.

mayamanako

Technical User
Joined
Aug 31, 2005
Messages
113
Location
GB
hi folks. can you help me pls. if i have a page named 1.html and it has a meta-refresh redirect to page 2.html, how can i prevent the user to go back to 1.html even if they press the back button in the browser? i would like to do this because there's a small .asp script that i wrote that updates the database and i dont want the users to mess the data by giving them access only once to that page. any ideas/suggestions? thnx in advance.
 
You will not be able to stop them if you insist on using meta-refresh. You will have to use the "replace" method of the "location" object instead.

Hope this helps,
Dan



[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top