|
I have a form which contains a textbox and a sbumit button.After submit when we try to come back using "back" in internet explorer, I want the textfield value should be empty. I tried with setting content="no-cache" in the meta tags but its not working .
Is there anyother way to make this happen.
Thanks in advance
Dkarun
|
|
|
That is normal browser behavior. Users could get very upset with a site that "blanked" their forms when they clicked the back button. You should find a way to make your site work without altering standard browser behavior.
What you'll have to do if you must do this, is handle the "submit" event.
Write a function that, on form submit, collects the form data into a long string or hidden variable. Then, the procedure will blank the form elements you want blanked, and lastly, submit the form.
|
|
|
|
|
|
|
|
|
|