All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface org.w3c.dom.html.HTMLFormElement

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


Method Index

 o getAcceptCharset()
List of character sets supported by the server.
 o getAction()
Server-side form handler.
 o getElements()
Returns a collection of all control elements in the form.
 o getEnctype()
The content type of the submitted form, generally "application/x-www-form-urlencoded".
 o getLength()
The number of form controls in the form.
 o getMethod()
HTTP method used to submit form.
 o getName()
Names the form.
 o getTarget()
Frame to render the resource in.
 o reset()
Restores a form element's default values.
 o setAcceptCharset(String)
 o setAction(String)
 o setEnctype(String)
 o setMethod(String)
 o setName(String)
 o setTarget(String)
 o submit()
Submits the form.

Methods

 o getElements
 public abstract HTMLCollection getElements()
Returns a collection of all control elements in the form.

 o getLength
 public abstract int getLength()
The number of form controls in the form.

 o getName
 public abstract String getName()
Names the form.

 o setName
 public abstract void setName(String name)
 o getAcceptCharset
 public abstract String getAcceptCharset()
List of character sets supported by the server. See the accept-charset attribute definition in HTML 4.0.

 o setAcceptCharset
 public abstract void setAcceptCharset(String acceptCharset)
 o getAction
 public abstract String getAction()
Server-side form handler. See the action attribute definition in HTML 4.0.

 o setAction
 public abstract void setAction(String action)
 o getEnctype
 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.

 o setEnctype
 public abstract void setEnctype(String enctype)
 o getMethod
 public abstract String getMethod()
HTTP method used to submit form. See the method attribute definition in HTML 4.0.

 o setMethod
 public abstract void setMethod(String method)
 o getTarget
 public abstract String getTarget()
Frame to render the resource in. See the target attribute definition in HTML 4.0.

 o setTarget
 public abstract void setTarget(String target)
 o submit
 public abstract void submit()
Submits the form. It performs the same action as a submit button.

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


All Packages  Class Hierarchy  This Package  Previous  Next  Index