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!

How To Clear Fields on a Form After Moving To Another Form

Status
Not open for further replies.

JohnBates

MIS
Feb 27, 2000
1,995
US
Hi ASP experts -

Because it is so difficult to disable the BACK button, I thought maybe I can just erase the values the user entered
into the Input form/ASP after they have moved on past the Confirm ASP.

Is it possible to clear/erase ASP 1's input boxes after having moved on to ASP 2 or 3 ?

Thanks for any help. JOhn
 
This really doesn't have to do with ASP...it's a client side problem...

But yes you can. Create a javascript function to clear all the fields. Then call that function within a body onload tag. This should call the function whether going to the page for the first time, or if it's going back in the user's history. Has always worked for me anyway. -Ovatvvon :-Q
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top