See also the Document Object Model (DOM) Level 2 Specification.
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public String | getAccept()
A comma-separated list of content types that a server processing this form will handle correctly. |
| public String | |
| public String | |
| public String | |
| public boolean | getChecked()
When the |
| public boolean | getDefaultChecked()
When |
| public String | getDefaultValue()
When the |
| public boolean | |
| public HTMLFormElement | |
| public int | getMaxLength()
Maximum number of characters for text fields, when |
| public String | |
| public boolean | |
| public String | |
| public String | getSrc()
When the |
| public int | |
| public String | |
| public String | |
| public String | getValue()
When the |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void |
| blur | back to summary |
|---|---|
| public void blur() Removes keyboard focus from this element. | |
| click | back to summary |
|---|---|
| public void click() Simulate a mouse-click. For | |
| focus | back to summary |
|---|---|
| public void focus() Gives keyboard focus to this element. | |
| getAccept | back to summary |
|---|---|
| public String getAccept() A comma-separated list of content types that a server processing this form will handle correctly. See the accept attribute definition in HTML 4.0. | |
| getAccessKey | back to summary |
|---|---|
| public String getAccessKey() A single character access key to give access to the form control. See the accesskey attribute definition in HTML 4.0. | |
| getAlign | back to summary |
|---|---|
| public String getAlign() Aligns this object (vertically or horizontally) with respect to its surrounding text. See the align attribute definition in HTML 4.0. This attribute is deprecated in HTML 4.0. | |
| getAlt | back to summary |
|---|---|
| public String getAlt() Alternate text for user agents not rendering the normal content of this element. See the alt attribute definition in HTML 4.0. | |
| getChecked | back to summary |
|---|---|
| public boolean getChecked() When the | |
| getDefaultChecked | back to summary |
|---|---|
| public boolean getDefaultChecked() When | |
| getDefaultValue | back to summary |
|---|---|
| public String getDefaultValue() When the | |
| getDisabled | back to summary |
|---|---|
| public boolean getDisabled() The control is unavailable in this context. See the disabled attribute definition in HTML 4.0. | |
| getForm | back to summary |
|---|---|
| public HTMLFormElement getForm() Returns the | |
| getMaxLength | back to summary |
|---|---|
| public int getMaxLength() Maximum number of characters for text fields, when | |
| getName | back to summary |
|---|---|
| public String getName() Form control or object name when submitted with a form. See the name attribute definition in HTML 4.0. | |
| getReadOnly | back to summary |
|---|---|
| public boolean getReadOnly() This control is read-only. Relevant only when | |
| getSize | back to summary |
|---|---|
| public String getSize() Size information. The precise meaning is specific to each type of field. See the size attribute definition in HTML 4.0. | |
| getSrc | back to summary |
|---|---|
| public String getSrc() When the | |
| getTabIndex | back to summary |
|---|---|
| public int getTabIndex() Index that represents the element's position in the tabbing order. See the tabindex attribute definition in HTML 4.0. | |
| getType | back to summary |
|---|---|
| public String getType() The type of control created. See the type attribute definition in HTML 4.0. | |
| getUseMap | back to summary |
|---|---|
| public String getUseMap() Use client-side image map. See the usemap attribute definition in HTML 4.0. | |
| getValue | back to summary |
|---|---|
| public String getValue() When the | |
| select | back to summary |
|---|---|
| public void select() Select the contents of the text area. For | |
| setAccept | back to summary |
|---|---|
| public void setAccept(String accept) | |
| setAccessKey | back to summary |
|---|---|
| public void setAccessKey(String accessKey) | |
| setAlign | back to summary |
|---|---|
| public void setAlign(String align) | |
| setAlt | back to summary |
|---|---|
| public void setAlt(String alt) | |
| setChecked | back to summary |
|---|---|
| public void setChecked(boolean checked) | |
| setDefaultChecked | back to summary |
|---|---|
| public void setDefaultChecked(boolean defaultChecked) | |
| setDefaultValue | back to summary |
|---|---|
| public void setDefaultValue(String defaultValue) | |
| setDisabled | back to summary |
|---|---|
| public void setDisabled(boolean disabled) | |
| setMaxLength | back to summary |
|---|---|
| public void setMaxLength(int maxLength) | |
| setName | back to summary |
|---|---|
| public void setName(String name) | |
| setReadOnly | back to summary |
|---|---|
| public void setReadOnly(boolean readOnly) | |
| setSize | back to summary |
|---|---|
| public void setSize(String size) | |
| setSrc | back to summary |
|---|---|
| public void setSrc(String src) | |
| setTabIndex | back to summary |
|---|---|
| public void setTabIndex(int tabIndex) | |
| setUseMap | back to summary |
|---|---|
| public void setUseMap(String useMap) | |
| setValue | back to summary |
|---|---|
| public void setValue(String value) | |