Welcome Guest, Not a member yet? Register   Sign In
after form submit and use back button..form have values...need to remove
#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.


Messages In This Thread
after form submit and use back button..form have values...need to remove - by El Forum - 05-23-2009, 08:53 PM



Theme © iAndrew 2016 - Forum software by © MyBB