FORM element encompasses behavior similar to a collection
and an element. It provides direct access to the contained input elements
as well as the attributes of the form element. See the FORM element
definition in HTML 4.0.
See also the Document Object Model (DOM) Level 2 Specification.
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public String | |
| public HTMLCollection | |
| public String | |
| public int | |
| public String | |
| public String | |
| public String | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void |
| getAcceptCharset | back to summary |
|---|---|
| public String getAcceptCharset() List of character sets supported by the server. See the accept-charset attribute definition in HTML 4.0. | |
| getAction | back to summary |
|---|---|
| public String getAction() Server-side form handler. See the action attribute definition in HTML 4.0. | |
| getElements | back to summary |
|---|---|
| public HTMLCollection getElements() Returns a collection of all control elements in the form. | |
| getEnctype | back to summary |
|---|---|
| public String getEnctype() The content type of the submitted form, generally "application/x-www-form-urlencoded". See the enctype attribute definition in HTML 4.0. | |
| getLength | back to summary |
|---|---|
| public int getLength() The number of form controls in the form. | |
| getMethod | back to summary |
|---|---|
| public String getMethod() HTTP method used to submit form. See the method attribute definition in HTML 4.0. | |
| getName | back to summary |
|---|---|
| public String getName() Names the form. | |
| getTarget | back to summary |
|---|---|
| public String getTarget() Frame to render the resource in. See the target attribute definition in HTML 4.0. | |
| reset | back to summary |
|---|---|
| public void reset() Restores a form element's default values. It performs the same action as a reset button. | |
| setAcceptCharset | back to summary |
|---|---|
| public void setAcceptCharset(String acceptCharset) | |
| setAction | back to summary |
|---|---|
| public void setAction(String action) | |
| setEnctype | back to summary |
|---|---|
| public void setEnctype(String enctype) | |
| setMethod | back to summary |
|---|---|
| public void setMethod(String method) | |
| setName | back to summary |
|---|---|
| public void setName(String name) | |
| setTarget | back to summary |
|---|---|
| public void setTarget(String target) | |
| submit | back to summary |
|---|---|
| public void submit() Submits the form. It performs the same action as a submit button. | |