public interface FormElement extends Element
FORM
elements share all of the properties and methods of other HTML elements described in the element section.
This interface provides methods to create and modify FORM
elements using the DOM.
ALLOW_KEYBOARD_INPUT
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
Modifier and Type | Method and Description |
---|---|
boolean |
checkValidity() |
String |
getAcceptCharset()
Reflects the
accept-charset
HTML attribute, containing a list of character encodings that the server accepts. |
String |
getAction()
Reflects the
action
HTML attribute, containing the URI of a program that processes the information submitted by the form. |
String |
getAutocomplete()
Reflects the
autocomplete
HTML attribute, containing a string that indicates whether the controls in this form can have their values automatically populated by the browser. |
HTMLCollection |
getElements()
All the form controls belonging to this form element.
|
String |
getEncoding()
Synonym for enctype.
|
String |
getEnctype()
Reflects the
enctype
HTML attribute, indicating the type of content that is used to transmit the form to the server. |
int |
getLength()
The number of controls in the form.
|
String |
getMethod()
Reflects the
method
HTML attribute, indicating the HTTP method used to submit the form. |
String |
getName()
Reflects the
name
HTML attribute, containing the name of the form. |
String |
getTarget()
Reflects the
target
HTML attribute, indicating where to display the results received from submitting the form. |
boolean |
isNoValidate()
Reflects the
novalidate
HTML attribute, indicating that the form should not be validated. |
void |
reset()
Resets the forms to its initial state.
|
void |
setAcceptCharset(String arg) |
void |
setAction(String arg) |
void |
setAutocomplete(String arg) |
void |
setEncoding(String arg) |
void |
setEnctype(String arg) |
void |
setMethod(String arg) |
void |
setName(String arg) |
void |
setNoValidate(boolean arg) |
void |
setTarget(String arg) |
void |
submit()
Submits the form to the server.
|
blur, click, focus, getAccessKey, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getBoundingClientRect, getChildElementCount, getChildren, getClassList, getClassName, getClientHeight, getClientLeft, getClientRects, getClientTop, getClientWidth, getContentEditable, getDataset, getDir, getElementsByClassName, getElementsByTagName, getElementsByTagNameNS, getFirstElementChild, getId, getInnerHTML, getInnerText, getLang, getLastElementChild, getNextElementSibling, getOffsetHeight, getOffsetLeft, getOffsetParent, getOffsetTop, getOffsetWidth, getOnabort, getOnbeforecopy, getOnbeforecut, getOnbeforepaste, getOnblur, getOnchange, getOnclick, getOncontextmenu, getOncopy, getOncut, getOndblclick, getOndrag, getOndragend, getOndragenter, getOndragleave, getOndragover, getOndragstart, getOndrop, getOnerror, getOnfocus, getOninput, getOninvalid, getOnkeydown, getOnkeypress, getOnkeyup, getOnload, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnmousewheel, getOnpaste, getOnreset, getOnscroll, getOnsearch, getOnselect, getOnselectstart, getOnsubmit, getOntouchcancel, getOntouchend, getOntouchmove, getOntouchstart, getOnwebkitfullscreenchange, getOnwebkitfullscreenerror, getOuterHTML, getOuterText, getPreviousElementSibling, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth, getStyle, getTabIndex, getTagName, getTitle, getWebkitdropzone, getWebkitRegionOverflow, hasAttribute, hasAttributeNS, insertAdjacentElement, insertAdjacentHTML, insertAdjacentText, isContentEditable, isDraggable, isHidden, isSpellcheck, isTranslate, querySelector, querySelectorAll, removeAttribute, removeAttributeNode, removeAttributeNS, scrollByLines, scrollByPages, scrollIntoView, scrollIntoView, scrollIntoViewIfNeeded, scrollIntoViewIfNeeded, setAccessKey, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setClassName, setContentEditable, setDir, setDraggable, setHidden, setId, setInnerHTML, setInnerText, setLang, setOnabort, setOnbeforecopy, setOnbeforecut, setOnbeforepaste, setOnblur, setOnchange, setOnclick, setOncontextmenu, setOncopy, setOncut, setOndblclick, setOndrag, setOndragend, setOndragenter, setOndragleave, setOndragover, setOndragstart, setOndrop, setOnerror, setOnfocus, setOninput, setOninvalid, setOnkeydown, setOnkeypress, setOnkeyup, setOnload, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnmousewheel, setOnpaste, setOnreset, setOnscroll, setOnsearch, setOnselect, setOnselectstart, setOnsubmit, setOntouchcancel, setOntouchend, setOntouchmove, setOntouchstart, setOnwebkitfullscreenchange, setOnwebkitfullscreenerror, setOuterHTML, setOuterText, setScrollLeft, setScrollTop, setSpellcheck, setTabIndex, setTitle, setTranslate, setWebkitdropzone, webkitMatchesSelector, webkitRequestFullscreen, webkitRequestFullScreen
addEventListener, addEventListener, appendChild, cloneNode, compareDocumentPosition, contains, dispatchEvent, getAttributes, getBaseURI, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPrefix, getPreviousSibling, getTextContent, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, removeEventListener, removeEventListener, replaceChild, setNodeValue, setPrefix, setTextContent
String getAcceptCharset()
accept-charset
HTML attribute, containing a list of character encodings that the server accepts.void setAcceptCharset(String arg)
String getAction()
action
HTML attribute, containing the URI of a program that processes the information submitted by the form.void setAction(String arg)
String getAutocomplete()
autocomplete
HTML attribute, containing a string that indicates whether the controls in this form can have their values automatically populated by the browser.void setAutocomplete(String arg)
HTMLCollection getElements()
String getEncoding()
void setEncoding(String arg)
String getEnctype()
enctype
HTML attribute, indicating the type of content that is used to transmit the form to the server. Only specified values can be set.void setEnctype(String arg)
int getLength()
String getMethod()
method
HTML attribute, indicating the HTTP method used to submit the form. Only specified values can be set.void setMethod(String arg)
void setName(String arg)
boolean isNoValidate()
novalidate
HTML attribute, indicating that the form should not be validated.void setNoValidate(boolean arg)
String getTarget()
target
HTML attribute, indicating where to display the results received from submitting the form.void setTarget(String arg)
boolean checkValidity()
void reset()
void submit()
Copyright © 2018. All rights reserved.