public interface

HTMLFormElement

implements HTMLElement
org.w3c.dom.html.HTMLFormElement

Class Overview

The 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.

Summary

[Expand]
Inherited Constants
From interface org.w3c.dom.Node
Public Methods
abstract String getAcceptCharset()
List of character sets supported by the server.
abstract String getAction()
Server-side form handler.
abstract HTMLCollection getElements()
Returns a collection of all control elements in the form.
abstract String getEnctype()
The content type of the submitted form, generally "application/x-www-form-urlencoded".
abstract int getLength()
The number of form controls in the form.
abstract String getMethod()
HTTP method used to submit form.
abstract String getName()
Names the form.
abstract String getTarget()
Frame to render the resource in.
abstract void reset()
Restores a form element's default values.
abstract void setAcceptCharset(String acceptCharset)
abstract void setAction(String action)
abstract void setEnctype(String enctype)
abstract void setMethod(String method)
abstract void setName(String name)
abstract void setTarget(String target)
abstract void submit()
Submits the form.
[Expand]
Inherited Methods
From interface org.w3c.dom.Element
From interface org.w3c.dom.Node
From interface org.w3c.dom.html.HTMLElement

Public Methods

public abstract String getAcceptCharset ()

List of character sets supported by the server. See the accept-charset attribute definition in HTML 4.0.

public abstract String getAction ()

Server-side form handler. See the action attribute definition in HTML 4.0.

public abstract HTMLCollection getElements ()

Returns a collection of all control elements in the form.

public abstract String getEnctype ()

The content type of the submitted form, generally "application/x-www-form-urlencoded". See the enctype attribute definition in HTML 4.0.

public abstract int getLength ()

The number of form controls in the form.

public abstract String getMethod ()

HTTP method used to submit form. See the method attribute definition in HTML 4.0.

public abstract String getName ()

Names the form.

public abstract String getTarget ()

Frame to render the resource in. See the target attribute definition in HTML 4.0.

public abstract void reset ()

Restores a form element's default values. It performs the same action as a reset button.

public abstract void setAcceptCharset (String acceptCharset)

public abstract void setAction (String action)

public abstract void setEnctype (String enctype)

public abstract void setMethod (String method)

public abstract void setName (String name)

public abstract void setTarget (String target)

public abstract void submit ()

Submits the form. It performs the same action as a submit button.