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 |
|
|
IDL |
|
|
DLL |
|
See also
- Reference
- IHTMLFormElement2
- IHTMLFormElement3
Build date: 11/12/2012