[thelist] Form Reset on Refresh
mpember at mpember.d2g.com
mpember at mpember.d2g.com
Sun May 5 21:55:01 CDT 2002
Erik Mattheis <gozz at gozz.com> wrote :
> Heh, I tend to hesitate before answering
> questions addressed to experts,
I know what you mean :)
> but but think calling something like the following might
> work for you:
>
> function resetForms() {
> for (i=0; i b
> document.forms[i].reset();
> }
> }
By putting this method in the onunload and onload methods of the document, you will cover almost every scenario (pressing "back" to get to a page sometimes doesn't trigger the onload method).
More information about the thelist
mailing list