FORMFORM*
*Contents  *Index  *Topic Contents
*Previous Topic: FONT
*Next Topic: FRAME

FORM

Description

Specifies that the contained controls take part in a form.

Remarks

When programming the form, all control-like elements are added to the form as named items.

When the focus is on a control in a form, pressing ESC once causes the value of the control to revert back to the last value, and pressing the key again resets the form. If the focus is on the but not on a particular control, pressing ESC once resets the form.

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

This element is a block element.

Properties

action, className, document, encoding, id, innerHTML, innerText, isTextEdit, lang, language, method, name, offsetHeight, offsetLeft, offsetParent, offsetTop, offsetWidth, outerHTML, outerText, parentElement, parentTextEdit, sourceIndex, style, tagName, target, title

Methods

click, contains, getAttribute, insertAdjacentHTML, insertAdjacentText, removeAttribute, reset, scrollIntoView, setAttribute, submit

Collections

all, children, elements, filters

Events

onclick, ondblclick, ondragstart, onfilterchange, onhelp, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onreset, onselectstart, onsubmit

HTML Element

FORM


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.