org.w3c.dom.html
Interface HTMLFormElement

All Superinterfaces:
Element sample code for org.w3c.dom.Element definition code for org.w3c.dom.Element , HTMLElement sample code for org.w3c.dom.html.HTMLElement definition code for org.w3c.dom.html.HTMLElement , Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node

public interface HTMLFormElement
extends HTMLElement sample code for org.w3c.dom.html.HTMLElement definition code for org.w3c.dom.html.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.


Field Summary
 
Fields inherited from interface org.w3c.dom.Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node
ATTRIBUTE_NODE sample code for org.w3c.dom.Node.ATTRIBUTE_NODE definition code for org.w3c.dom.Node.ATTRIBUTE_NODE , CDATA_SECTION_NODE sample code for org.w3c.dom.Node.CDATA_SECTION_NODE definition code for org.w3c.dom.Node.CDATA_SECTION_NODE , COMMENT_NODE sample code for org.w3c.dom.Node.COMMENT_NODE definition code for org.w3c.dom.Node.COMMENT_NODE , DOCUMENT_FRAGMENT_NODE sample code for org.w3c.dom.Node.DOCUMENT_FRAGMENT_NODE definition code for org.w3c.dom.Node.DOCUMENT_FRAGMENT_NODE , DOCUMENT_NODE sample code for org.w3c.dom.Node.DOCUMENT_NODE definition code for org.w3c.dom.Node.DOCUMENT_NODE , DOCUMENT_POSITION_CONTAINED_BY sample code for org.w3c.dom.Node.DOCUMENT_POSITION_CONTAINED_BY definition code for org.w3c.dom.Node.DOCUMENT_POSITION_CONTAINED_BY , DOCUMENT_POSITION_CONTAINS sample code for org.w3c.dom.Node.DOCUMENT_POSITION_CONTAINS definition code for org.w3c.dom.Node.DOCUMENT_POSITION_CONTAINS , DOCUMENT_POSITION_DISCONNECTED sample code for org.w3c.dom.Node.DOCUMENT_POSITION_DISCONNECTED definition code for org.w3c.dom.Node.DOCUMENT_POSITION_DISCONNECTED , DOCUMENT_POSITION_FOLLOWING sample code for org.w3c.dom.Node.DOCUMENT_POSITION_FOLLOWING definition code for org.w3c.dom.Node.DOCUMENT_POSITION_FOLLOWING , DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC sample code for org.w3c.dom.Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC definition code for org.w3c.dom.Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC , DOCUMENT_POSITION_PRECEDING sample code for org.w3c.dom.Node.DOCUMENT_POSITION_PRECEDING definition code for org.w3c.dom.Node.DOCUMENT_POSITION_PRECEDING , DOCUMENT_TYPE_NODE sample code for org.w3c.dom.Node.DOCUMENT_TYPE_NODE definition code for org.w3c.dom.Node.DOCUMENT_TYPE_NODE , ELEMENT_NODE sample code for org.w3c.dom.Node.ELEMENT_NODE definition code for org.w3c.dom.Node.ELEMENT_NODE , ENTITY_NODE sample code for org.w3c.dom.Node.ENTITY_NODE definition code for org.w3c.dom.Node.ENTITY_NODE , ENTITY_REFERENCE_NODE sample code for org.w3c.dom.Node.ENTITY_REFERENCE_NODE definition code for org.w3c.dom.Node.ENTITY_REFERENCE_NODE , NOTATION_NODE sample code for org.w3c.dom.Node.NOTATION_NODE definition code for org.w3c.dom.Node.NOTATION_NODE , PROCESSING_INSTRUCTION_NODE sample code for org.w3c.dom.Node.PROCESSING_INSTRUCTION_NODE definition code for org.w3c.dom.Node.PROCESSING_INSTRUCTION_NODE , TEXT_NODE sample code for org.w3c.dom.Node.TEXT_NODE definition code for org.w3c.dom.Node.TEXT_NODE
 
Method Summary
 String sample code for java.lang.String definition code for java.lang.String getAcceptCharset sample code for org.w3c.dom.html.HTMLFormElement.getAcceptCharset() definition code for org.w3c.dom.html.HTMLFormElement.getAcceptCharset() ()
          List of character sets supported by the server.
 String sample code for java.lang.String definition code for java.lang.String getAction sample code for org.w3c.dom.html.HTMLFormElement.getAction() definition code for org.w3c.dom.html.HTMLFormElement.getAction() ()
          Server-side form handler.
 HTMLCollection sample code for org.w3c.dom.html.HTMLCollection definition code for org.w3c.dom.html.HTMLCollection getElements sample code for org.w3c.dom.html.HTMLFormElement.getElements() definition code for org.w3c.dom.html.HTMLFormElement.getElements() ()
          Returns a collection of all control elements in the form.
 String sample code for java.lang.String definition code for java.lang.String getEnctype sample code for org.w3c.dom.html.HTMLFormElement.getEnctype() definition code for org.w3c.dom.html.HTMLFormElement.getEnctype() ()
          The content type of the submitted form, generally "application/x-www-form-urlencoded".
 int getLength sample code for org.w3c.dom.html.HTMLFormElement.getLength() definition code for org.w3c.dom.html.HTMLFormElement.getLength() ()
          The number of form controls in the form.
 String sample code for java.lang.String definition code for java.lang.String getMethod sample code for org.w3c.dom.html.HTMLFormElement.getMethod() definition code for org.w3c.dom.html.HTMLFormElement.getMethod() ()
          HTTP method used to submit form.
 String sample code for java.lang.String definition code for java.lang.String getName sample code for org.w3c.dom.html.HTMLFormElement.getName() definition code for org.w3c.dom.html.HTMLFormElement.getName() ()
          Names the form.
 String sample code for java.lang.String definition code for java.lang.String getTarget sample code for org.w3c.dom.html.HTMLFormElement.getTarget() definition code for org.w3c.dom.html.HTMLFormElement.getTarget() ()
          Frame to render the resource in.
 void reset sample code for org.w3c.dom.html.HTMLFormElement.reset() definition code for org.w3c.dom.html.HTMLFormElement.reset() ()
          Restores a form element's default values.
 void setAcceptCharset sample code for org.w3c.dom.html.HTMLFormElement.setAcceptCharset(java.lang.String) definition code for org.w3c.dom.html.HTMLFormElement.setAcceptCharset(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  acceptCharset)
           
 void setAction sample code for org.w3c.dom.html.HTMLFormElement.setAction(java.lang.String) definition code for org.w3c.dom.html.HTMLFormElement.setAction(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  action)
           
 void setEnctype sample code for org.w3c.dom.html.HTMLFormElement.setEnctype(java.lang.String) definition code for org.w3c.dom.html.HTMLFormElement.setEnctype(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  enctype)
           
 void setMethod sample code for org.w3c.dom.html.HTMLFormElement.setMethod(java.lang.String) definition code for org.w3c.dom.html.HTMLFormElement.setMethod(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  method)
           
 void setName sample code for org.w3c.dom.html.HTMLFormElement.setName(java.lang.String) definition code for org.w3c.dom.html.HTMLFormElement.setName(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  name)
           
 void setTarget sample code for org.w3c.dom.html.HTMLFormElement.setTarget(java.lang.String) definition code for org.w3c.dom.html.HTMLFormElement.setTarget(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  target)
           
 void submit sample code for org.w3c.dom.html.HTMLFormElement.submit() definition code for org.w3c.dom.html.HTMLFormElement.submit() ()
          Submits the form.
 
Methods inherited from interface org.w3c.dom.html.HTMLElement sample code for org.w3c.dom.html.HTMLElement definition code for org.w3c.dom.html.HTMLElement
getClassName sample code for org.w3c.dom.html.HTMLElement.getClassName() definition code for org.w3c.dom.html.HTMLElement.getClassName() , getDir sample code for org.w3c.dom.html.HTMLElement.getDir() definition code for org.w3c.dom.html.HTMLElement.getDir() , getId sample code for org.w3c.dom.html.HTMLElement.getId() definition code for org.w3c.dom.html.HTMLElement.getId() , getLang sample code for org.w3c.dom.html.HTMLElement.getLang() definition code for org.w3c.dom.html.HTMLElement.getLang() , getTitle sample code for org.w3c.dom.html.HTMLElement.getTitle() definition code for org.w3c.dom.html.HTMLElement.getTitle() , setClassName sample code for org.w3c.dom.html.HTMLElement.setClassName(java.lang.String) definition code for org.w3c.dom.html.HTMLElement.setClassName(java.lang.String) , setDir sample code for org.w3c.dom.html.HTMLElement.setDir(java.lang.String) definition code for org.w3c.dom.html.HTMLElement.setDir(java.lang.String) , setId sample code for org.w3c.dom.html.HTMLElement.setId(java.lang.String) definition code for org.w3c.dom.html.HTMLElement.setId(java.lang.String) , setLang sample code for org.w3c.dom.html.HTMLElement.setLang(java.lang.String) definition code for org.w3c.dom.html.HTMLElement.setLang(java.lang.String) , setTitle sample code for org.w3c.dom.html.HTMLElement.setTitle(java.lang.String) definition code for org.w3c.dom.html.HTMLElement.setTitle(java.lang.String)
 
Methods inherited from interface org.w3c.dom.Element sample code for org.w3c.dom.Element definition code for org.w3c.dom.Element
getAttribute sample code for org.w3c.dom.Element.getAttribute(java.lang.String) definition code for org.w3c.dom.Element.getAttribute(java.lang.String) , getAttributeNode sample code for org.w3c.dom.Element.getAttributeNode(java.lang.String) definition code for org.w3c.dom.Element.getAttributeNode(java.lang.String) , getAttributeNodeNS sample code for org.w3c.dom.Element.getAttributeNodeNS(java.lang.String, java.lang.String) definition code for org.w3c.dom.Element.getAttributeNodeNS(java.lang.String, java.lang.String) , getAttributeNS sample code for org.w3c.dom.Element.getAttributeNS(java.lang.String, java.lang.String) definition code for org.w3c.dom.Element.getAttributeNS(java.lang.String, java.lang.String) , getElementsByTagName sample code for org.w3c.dom.Element.getElementsByTagName(java.lang.String) definition code for org.w3c.dom.Element.getElementsByTagName(java.lang.String) , getElementsByTagNameNS sample code for org.w3c.dom.Element.getElementsByTagNameNS(java.lang.String, java.lang.String) definition code for org.w3c.dom.Element.getElementsByTagNameNS(java.lang.String, java.lang.String) , getSchemaTypeInfo sample code for org.w3c.dom.Element.getSchemaTypeInfo() definition code for org.w3c.dom.Element.getSchemaTypeInfo() , getTagName sample code for org.w3c.dom.Element.getTagName() definition code for org.w3c.dom.Element.getTagName() , hasAttribute sample code for org.w3c.dom.Element.hasAttribute(java.lang.String) definition code for org.w3c.dom.Element.hasAttribute(java.lang.String) , hasAttributeNS sample code for org.w3c.dom.Element.hasAttributeNS(java.lang.String, java.lang.String) definition code for org.w3c.dom.Element.hasAttributeNS(java.lang.String, java.lang.String) , removeAttribute sample code for org.w3c.dom.Element.removeAttribute(java.lang.String) definition code for org.w3c.dom.Element.removeAttribute(java.lang.String) , removeAttributeNode sample code for org.w3c.dom.Element.removeAttributeNode(org.w3c.dom.Attr) definition code for org.w3c.dom.Element.removeAttributeNode(org.w3c.dom.Attr) , removeAttributeNS sample code for org.w3c.dom.Element.removeAttributeNS(java.lang.String, java.lang.String) definition code for org.w3c.dom.Element.removeAttributeNS(java.lang.String, java.lang.String) , setAttribute sample code for org.w3c.dom.Element.setAttribute(java.lang.String, java.lang.String) definition code for org.w3c.dom.Element.setAttribute(java.lang.String, java.lang.String) , setAttributeNode sample code for org.w3c.dom.Element.setAttributeNode(org.w3c.dom.Attr) definition code for org.w3c.dom.Element.setAttributeNode(org.w3c.dom.Attr) , setAttributeNodeNS sample code for org.w3c.dom.Element.setAttributeNodeNS(org.w3c.dom.Attr) definition code for org.w3c.dom.Element.setAttributeNodeNS(org.w3c.dom.Attr) , setAttributeNS sample code for org.w3c.dom.Element.setAttributeNS(java.lang.String, java.lang.String, java.lang.String) definition code for org.w3c.dom.Element.setAttributeNS(java.lang.String, java.lang.String, java.lang.String) , setIdAttribute sample code for org.w3c.dom.Element.setIdAttribute(java.lang.String, boolean) definition code for org.w3c.dom.Element.setIdAttribute(java.lang.String, boolean) , setIdAttributeNode sample code for org.w3c.dom.Element.setIdAttributeNode(org.w3c.dom.Attr, boolean) definition code for org.w3c.dom.Element.setIdAttributeNode(org.w3c.dom.Attr, boolean) , setIdAttributeNS sample code for org.w3c.dom.Element.setIdAttributeNS(java.lang.String, java.lang.String, boolean) definition code for org.w3c.dom.Element.setIdAttributeNS(java.lang.String, java.lang.String, boolean)
 
Methods inherited from interface org.w3c.dom.Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node
appendChild sample code for org.w3c.dom.Node.appendChild(org.w3c.dom.Node) definition code for org.w3c.dom.Node.appendChild(org.w3c.dom.Node) , cloneNode sample code for org.w3c.dom.Node.cloneNode(boolean) definition code for org.w3c.dom.Node.cloneNode(boolean) , compareDocumentPosition sample code for org.w3c.dom.Node.compareDocumentPosition(org.w3c.dom.Node) definition code for org.w3c.dom.Node.compareDocumentPosition(org.w3c.dom.Node) , getAttributes sample code for org.w3c.dom.Node.getAttributes() definition code for org.w3c.dom.Node.getAttributes() , getBaseURI sample code for org.w3c.dom.Node.getBaseURI() definition code for org.w3c.dom.Node.getBaseURI() , getChildNodes sample code for org.w3c.dom.Node.getChildNodes() definition code for org.w3c.dom.Node.getChildNodes() , getFeature sample code for org.w3c.dom.Node.getFeature(java.lang.String, java.lang.String) definition code for org.w3c.dom.Node.getFeature(java.lang.String, java.lang.String) , getFirstChild sample code for org.w3c.dom.Node.getFirstChild() definition code for org.w3c.dom.Node.getFirstChild() , getLastChild sample code for org.w3c.dom.Node.getLastChild() definition code for org.w3c.dom.Node.getLastChild() , getLocalName sample code for org.w3c.dom.Node.getLocalName() definition code for org.w3c.dom.Node.getLocalName() , getNamespaceURI sample code for org.w3c.dom.Node.getNamespaceURI() definition code for org.w3c.dom.Node.getNamespaceURI() , getNextSibling sample code for org.w3c.dom.Node.getNextSibling() definition code for org.w3c.dom.Node.getNextSibling() , getNodeName sample code for org.w3c.dom.Node.getNodeName() definition code for org.w3c.dom.Node.getNodeName() , getNodeType sample code for org.w3c.dom.Node.getNodeType() definition code for org.w3c.dom.Node.getNodeType() , getNodeValue sample code for org.w3c.dom.Node.getNodeValue() definition code for org.w3c.dom.Node.getNodeValue() , getOwnerDocument sample code for org.w3c.dom.Node.getOwnerDocument() definition code for org.w3c.dom.Node.getOwnerDocument() , getParentNode sample code for org.w3c.dom.Node.getParentNode() definition code for org.w3c.dom.Node.getParentNode() , getPrefix sample code for org.w3c.dom.Node.getPrefix() definition code for org.w3c.dom.Node.getPrefix() , getPreviousSibling sample code for org.w3c.dom.Node.getPreviousSibling() definition code for org.w3c.dom.Node.getPreviousSibling() , getTextContent sample code for org.w3c.dom.Node.getTextContent() definition code for org.w3c.dom.Node.getTextContent() , getUserData sample code for org.w3c.dom.Node.getUserData(java.lang.String) definition code for org.w3c.dom.Node.getUserData(java.lang.String) , hasAttributes sample code for org.w3c.dom.Node.hasAttributes() definition code for org.w3c.dom.Node.hasAttributes() , hasChildNodes sample code for org.w3c.dom.Node.hasChildNodes() definition code for org.w3c.dom.Node.hasChildNodes() , insertBefore sample code for org.w3c.dom.Node.insertBefore(org.w3c.dom.Node, org.w3c.dom.Node) definition code for org.w3c.dom.Node.insertBefore(org.w3c.dom.Node, org.w3c.dom.Node) , isDefaultNamespace sample code for org.w3c.dom.Node.isDefaultNamespace(java.lang.String) definition code for org.w3c.dom.Node.isDefaultNamespace(java.lang.String) , isEqualNode sample code for org.w3c.dom.Node.isEqualNode(org.w3c.dom.Node) definition code for org.w3c.dom.Node.isEqualNode(org.w3c.dom.Node) , isSameNode sample code for org.w3c.dom.Node.isSameNode(org.w3c.dom.Node) definition code for org.w3c.dom.Node.isSameNode(org.w3c.dom.Node) , isSupported sample code for org.w3c.dom.Node.isSupported(java.lang.String, java.lang.String) definition code for org.w3c.dom.Node.isSupported(java.lang.String, java.lang.String) , lookupNamespaceURI sample code for org.w3c.dom.Node.lookupNamespaceURI(java.lang.String) definition code for org.w3c.dom.Node.lookupNamespaceURI(java.lang.String) , lookupPrefix sample code for org.w3c.dom.Node.lookupPrefix(java.lang.String) definition code for org.w3c.dom.Node.lookupPrefix(java.lang.String) , normalize sample code for org.w3c.dom.Node.normalize() definition code for org.w3c.dom.Node.normalize() , removeChild sample code for org.w3c.dom.Node.removeChild(org.w3c.dom.Node) definition code for org.w3c.dom.Node.removeChild(org.w3c.dom.Node) , replaceChild sample code for org.w3c.dom.Node.replaceChild(org.w3c.dom.Node, org.w3c.dom.Node) definition code for org.w3c.dom.Node.replaceChild(org.w3c.dom.Node, org.w3c.dom.Node) , setNodeValue sample code for org.w3c.dom.Node.setNodeValue(java.lang.String) definition code for org.w3c.dom.Node.setNodeValue(java.lang.String) , setPrefix sample code for org.w3c.dom.Node.setPrefix(java.lang.String) definition code for org.w3c.dom.Node.setPrefix(java.lang.String) , setTextContent sample code for org.w3c.dom.Node.setTextContent(java.lang.String) definition code for org.w3c.dom.Node.setTextContent(java.lang.String) , setUserData sample code for org.w3c.dom.Node.setUserData(java.lang.String, java.lang.Object, org.w3c.dom.UserDataHandler) definition code for org.w3c.dom.Node.setUserData(java.lang.String, java.lang.Object, org.w3c.dom.UserDataHandler)
 

Method Detail

getElements sample code for org.w3c.dom.html.HTMLFormElement.getElements() definition code for org.w3c.dom.html.HTMLFormElement.getElements()

HTMLCollection sample code for org.w3c.dom.html.HTMLCollection definition code for org.w3c.dom.html.HTMLCollection  getElements()
Returns a collection of all control elements in the form.


getLength sample code for org.w3c.dom.html.HTMLFormElement.getLength() definition code for org.w3c.dom.html.HTMLFormElement.getLength()

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


getName sample code for org.w3c.dom.html.HTMLFormElement.getName() definition code for org.w3c.dom.html.HTMLFormElement.getName()

String sample code for java.lang.String definition code for java.lang.String  getName()
Names the form.


setName sample code for org.w3c.dom.html.HTMLFormElement.setName(java.lang.String) definition code for org.w3c.dom.html.HTMLFormElement.setName(java.lang.String)

void setName(String sample code for java.lang.String definition code for java.lang.String  name)

getAcceptCharset sample code for org.w3c.dom.html.HTMLFormElement.getAcceptCharset() definition code for org.w3c.dom.html.HTMLFormElement.getAcceptCharset()

String sample code for java.lang.String definition code for java.lang.String  getAcceptCharset()
List of character sets supported by the server. See the accept-charset attribute definition in HTML 4.0.


setAcceptCharset sample code for org.w3c.dom.html.HTMLFormElement.setAcceptCharset(java.lang.String) definition code for org.w3c.dom.html.HTMLFormElement.setAcceptCharset(java.lang.String)

void setAcceptCharset(String sample code for java.lang.String definition code for java.lang.String  acceptCharset)

getAction sample code for org.w3c.dom.html.HTMLFormElement.getAction() definition code for org.w3c.dom.html.HTMLFormElement.getAction()

String sample code for java.lang.String definition code for java.lang.String  getAction()
Server-side form handler. See the action attribute definition in HTML 4.0.


setAction sample code for org.w3c.dom.html.HTMLFormElement.setAction(java.lang.String) definition code for org.w3c.dom.html.HTMLFormElement.setAction(java.lang.String)

void setAction(String sample code for java.lang.String definition code for java.lang.String  action)

getEnctype sample code for org.w3c.dom.html.HTMLFormElement.getEnctype() definition code for org.w3c.dom.html.HTMLFormElement.getEnctype()

String sample code for java.lang.String definition code for java.lang.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 sample code for org.w3c.dom.html.HTMLFormElement.setEnctype(java.lang.String) definition code for org.w3c.dom.html.HTMLFormElement.setEnctype(java.lang.String)

void setEnctype(String sample code for java.lang.String definition code for java.lang.String  enctype)

getMethod sample code for org.w3c.dom.html.HTMLFormElement.getMethod() definition code for org.w3c.dom.html.HTMLFormElement.getMethod()

String sample code for java.lang.String definition code for java.lang.String  getMethod()
HTTP method used to submit form. See the method attribute definition in HTML 4.0.


setMethod sample code for org.w3c.dom.html.HTMLFormElement.setMethod(java.lang.String) definition code for org.w3c.dom.html.HTMLFormElement.setMethod(java.lang.String)

void setMethod(String sample code for java.lang.String definition code for java.lang.String  method)

getTarget sample code for org.w3c.dom.html.HTMLFormElement.getTarget() definition code for org.w3c.dom.html.HTMLFormElement.getTarget()

String sample code for java.lang.String definition code for java.lang.String  getTarget()
Frame to render the resource in. See the target attribute definition in HTML 4.0.


setTarget sample code for org.w3c.dom.html.HTMLFormElement.setTarget(java.lang.String) definition code for org.w3c.dom.html.HTMLFormElement.setTarget(java.lang.String)

void setTarget(String sample code for java.lang.String definition code for java.lang.String  target)

submit sample code for org.w3c.dom.html.HTMLFormElement.submit() definition code for org.w3c.dom.html.HTMLFormElement.submit()

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


reset sample code for org.w3c.dom.html.HTMLFormElement.reset() definition code for org.w3c.dom.html.HTMLFormElement.reset()

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