FileDocCategorySizeDatePackage
HTMLFormElement.javaAPI DocJava SE 5 API2689Fri Aug 26 14:58:40 BST 2005org.w3c.dom.html

HTMLFormElement

public interface HTMLFormElement implements HTMLElement
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.

Fields Summary
Constructors Summary
Methods Summary
public java.lang.StringgetAcceptCharset()
List of character sets supported by the server. See the accept-charset attribute definition in HTML 4.0.

public java.lang.StringgetAction()
Server-side form handler. See the action attribute definition in HTML 4.0.

public org.w3c.dom.html.HTMLCollectiongetElements()
Returns a collection of all control elements in the form.

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

public intgetLength()
The number of form controls in the form.

public java.lang.StringgetMethod()
HTTP method used to submit form. See the method attribute definition in HTML 4.0.

public java.lang.StringgetName()
Names the form.

public java.lang.StringgetTarget()
Frame to render the resource in. See the target attribute definition in HTML 4.0.

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

public voidsetAcceptCharset(java.lang.String acceptCharset)

public voidsetAction(java.lang.String action)

public voidsetEnctype(java.lang.String enctype)

public voidsetMethod(java.lang.String method)

public voidsetName(java.lang.String name)

public voidsetTarget(java.lang.String target)

public voidsubmit()
Submits the form. It performs the same action as a submit button.