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 acollection
and an element. It provides direct access to the containedinput elements
as well as the attributes of the form element. See the FORM element
definition in HTML 4.0.
-
getAcceptCharset()
- List of character sets supported by the server.
-
getAction()
- Server-side form handler.
-
getElements()
- Returns a collection of all control elements in the form.
-
getEnctype()
- The content type of the submitted form, generally
"application/x-www-form-urlencoded".
-
getLength()
- The number of form controls in the form.
-
getMethod()
- HTTP method used to submit form.
-
getName()
- Names the form.
-
getTarget()
- Frame to render the resource in.
-
reset()
- Restores a form element's default values.
-
setAcceptCharset(String)
-
-
setAction(String)
-
-
setEnctype(String)
-
-
setMethod(String)
-
-
setName(String)
-
-
setTarget(String)
-
-
submit()
- Submits the form.
getElements
public abstract HTMLCollection getElements()
- Returns a collection of all control elements in the form.
getLength
public abstract int getLength()
- The number of form controls in the form.
getName
public abstract String getName()
- Names the form.
setName
public abstract void setName(String name)
getAcceptCharset
public abstract String getAcceptCharset()
- List of character sets supported by the server. See the accept-charset
attribute definition in HTML 4.0.
setAcceptCharset
public abstract void setAcceptCharset(String acceptCharset)
getAction
public abstract String getAction()
- Server-side form handler. See the action attribute definition in HTML 4.0.
setAction
public abstract void setAction(String action)
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.
setEnctype
public abstract void setEnctype(String enctype)
getMethod
public abstract String getMethod()
- HTTP method used to submit form. See the method attribute definition in
HTML 4.0.
setMethod
public abstract void setMethod(String method)
getTarget
public abstract String getTarget()
- Frame to render the resource in. See the target attribute definition in
HTML 4.0.
setTarget
public abstract void setTarget(String target)
submit
public abstract void submit()
- Submits the form. It performs the same action as a submit button.
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