2 out of 3 rated this helpful - Rate this topic

IHTMLFormElement interface

This interface specifies that the contained controls take part in a form.

Members

The IHTMLFormElement interface inherits from the IDispatch interface but does not have additional members.

Remarks

When the form is programmed, all control-like elements are added as named items. In addition, these items are exposed through the item method.

When the focus is on a control in a form, pressing the ESC key once causes the value of the control to revert to the last value. Pressing ESC again resets the form.

If only one text box is on a form, pressing ENTER fires the HTMLFormElementEvents::onsubmit event. If the form has a submit button, the button appears with a dark border, indicating that pressing ENTER submits the form.

The form element is a block element.

This interface may also be referred to in code as IOmForm2.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

Reference
IHTMLFormElement2
IHTMLFormElement3

 

 

Build date: 11/12/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.