Welcome Guest, Not a member yet? Register   Sign In
after form submit and use back button..form have values...need to remove
#11

[eluser]dine[/eluser]
I am feeling very great for getting such all imp reply from your sides.
what I do is set
Quote:body onload = "document.form1.reset(); "

and i think it's working fine.
#12

[eluser]dine[/eluser]
Can you please guide me as you did earlier for last reply by *dine*

http://ellislab.com/forums/viewthread/114736/
#13

[eluser]Vi.[/eluser]
Here is working solution;
Add this code to between <head></head> tags
Code:
function clear(){
    document.form.Keyword.value= ''; /* Add your own Input name like this */
    document.form.Where.value= ''; /* document.form.[Input name].value */
}
Then add this behavior to your <body> tag.
Code:
onload='clear()' onUnload='clear()'

It is working on Opera, Internet Explorer and Firefox.
#14

[eluser]TheFuzzy0ne[/eluser]
Won't that be useless if you are validating the input? If anything is wrong, the input controls will still be emptied when the page is reloaded.
#15

[eluser]sheri.nust[/eluser]
[quote author="dine" date="1243105267"]Can you please guide me as you did earlier for last reply by *dine*

http://ellislab.com/forums/viewthread/114736/[/quote]


do you want ,the values in form elements should be retained after it is being posting and validated ?




Theme © iAndrew 2016 - Forum software by © MyBB