Microsoft KB Archive/190892

{|
 * width="100%"|

PRB: Form.Reset is not Supported in Internet Explorer 3.0x

 * }

Q190892

-

The information in this article applies to:


 * Microsoft Internet Explorer (Programming) versions 3.0, 3.01, 3.02

-

SYMPTOMS
When attempting to call the reset method on a form object from a script, Internet Explorer reports the following error:

[Line: xx] Object doesn't support this property or method.

The same code functions correctly in Internet Explorer 4.0, resetting the form elements to their default values.

CAUSE
The versions of Internet Explorer listed above do not support a reset method on the form object.

RESOLUTION
By placing an input element of type RESET on the form, the click event of that button can be invoked from script.

STATUS
Internet Explorer 4.0 supports a reset method on the form object.

Steps to Reproduce Behavior
  Copy and paste the following HTML into a text file and load it into Internet Explorer 3.x.     function DoReset {    // -- The follow will result in a script error: document.oForm.reset; }           </li> <li>Modify the form values, and click the Pseudo-Reset button.</li></ol>

Workaround
To workaround this lack of functionality in Internet Explorer 3.0x, follow these steps:

<ol> <li> Change the following line <pre class="CODESAMP">document.oForm.reset; to the following: <pre class="CODESAMP">document.oForm.btnReset.click; </li> <li> Include a button of type RESET on the form: <pre class="CODESAMP"> <INPUT TYPE=RESET NAME=btnReset> </li></ol>

Additional query words:

Keywords : kbIE300 kbIE301 kbieObj kbScript kbIE302

Issue type : kbprb

Technology : kbIEsearch kbAudDeveloper kbSDKIESearch kbSDKIE300 kbSDKIE301 kbSDKIE302