[thelist] Form Reset on Refresh

Syed Zeeshan Haider szh at hotpop.com
Mon May 6 22:19:00 CDT 2002

Hi Erik,
That's what I was seeking. I simplified your idea to:
<body onload="document.myForm.reset()">
for one form on a page.
Hey, if somebody knows something then he is the expert of that thing. I
realize you have enough knowledge to be an expert. So don't hesitate.
Thanks again!
Syed Zeeshan Haider.

----- Original Message -----
Date: Sun, 5 May 2002 21:11:59 -0500
To: thelist at lists.evolt.org
From: Erik Mattheis <gozz at gozz.com>
Subject: Re: [thelist] Form Reset on Refresh
Reply-To: thelist at lists.evolt.org

Heh, I tend to hesitate before answering questions addressed to
experts, but but think calling something like the following might
work for you:

function resetForms() {
   for (i=0; i b< document.forms.length; i++) {

<body onLoad="resetForms()">

>Hello Experts,
>Sometimes a user needs to refresh a page containing one or more forms.
>If the users has changed the values of different form elements, they
>not RESET on refreshing the page. Is there anyway to reset the form(s)
>automatically on refreshing of the page?
>Thank you,
>Syed Zeeshan Haider.


- Erik Mattheis

(612) 377 2272

Through June 15
9am - 3pm M-F:
(952) 838 7698


More information about the thelist mailing list