public class HTMLTextAreaElement extends HTMLElement
HTMLTextAreaElement.HTMLElement.ProxyDomNodeorg.htmlunit.corejs.javascript.ScriptableObject.DescriptorInfo, org.htmlunit.corejs.javascript.ScriptableObject.KeyComparator, org.htmlunit.corejs.javascript.ScriptableObject.LambdaGetterFunction, org.htmlunit.corejs.javascript.ScriptableObject.LambdaSetterFunctionATTRIBUTE_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_NODECONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONSTNOT_FOUND| Constructor and Description | 
|---|
HTMLTextAreaElement()  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
checkValidity()
Checks whether the element has any constraints and whether it satisfies them. 
 | 
int | 
getCols()
Returns the number of columns in this text area. 
 | 
String | 
getDefaultValue()
Returns the textarea's default value, used if the containing form gets reset. 
 | 
HtmlTextArea | 
getDomNodeOrDie()
Returns the DOM node that corresponds to this JavaScript object or throw
 an exception if one cannot be found. 
 | 
HTMLFormElement | 
getForm()
Returns the value of the JavaScript  
form attribute. | 
NodeList | 
getLabels()
Returns the labels associated with the element. 
 | 
int | 
getMaxLength()
Returns the maximum number of characters in this text area. 
 | 
int | 
getMinLength()
Returns the minimum number of characters in this text area. 
 | 
String | 
getName()
Returns the value of the JavaScript attribute  
name. | 
String | 
getPlaceholder()
Returns the  
placeholder attribute. | 
int | 
getRows()
Returns the number of rows in this text area. 
 | 
int | 
getSelectionEnd()
Gets the value of  
selectionEnd attribute. | 
int | 
getSelectionStart()
Gets the value of  
selectionStart attribute. | 
int | 
getTextLength()
Gets the value of  
textLength attribute. | 
String | 
getType()
Returns the type of this input. 
 | 
ValidityState | 
getValidity()  | 
String | 
getValue()
Returns the value of the  
value attribute. | 
boolean | 
isDisabled()
Returns true if this element is disabled. 
 | 
boolean | 
isReadOnly()
Gets the value of  
readOnly attribute. | 
boolean | 
isRequired()
Returns the  
required property. | 
boolean | 
isWillValidate()  | 
void | 
jsConstructor()
JavaScript constructor. 
 | 
void | 
select()
Selects this element. 
 | 
void | 
setCols(String cols)
Sets the number of columns in this text area. 
 | 
void | 
setCustomValidity(String message)
Sets the custom validity message for the element to the specified message. 
 | 
void | 
setDefaultValue(String defaultValue)
Sets the textarea's default value, used if the containing form gets reset. 
 | 
void | 
setDisabled(boolean disabled)
Sets whether or not to disable this element. 
 | 
void | 
setMaxLength(String maxLength)
Sets maximum number of characters in this text area. 
 | 
void | 
setMinLength(String minLength)
Sets minimum number of characters in this text area. 
 | 
void | 
setName(String newName)
Sets the value of the JavaScript attribute  
name. | 
void | 
setPlaceholder(String placeholder)
Sets the  
placeholder attribute. | 
void | 
setReadOnly(boolean readOnly)
Sets the value of  
readOnly attribute. | 
void | 
setRequired(boolean required)
Sets the  
required property. | 
void | 
setRows(String rows)
Sets the number of rows in this text area. 
 | 
void | 
setSelectionEnd(int end)
Sets the value of  
selectionEnd attribute. | 
void | 
setSelectionRange(int start,
                 int end)
Sets the selected portion of this input element. 
 | 
void | 
setSelectionStart(int start)
Sets the value of  
selectionStart attribute. | 
void | 
setValue(Object value)
Sets the value of the  
value attribute. | 
blur, click, focus, getAccessKey, getAlign, getAttributeNode, getBoundingClientRect, getCh, getChOff, getContentEditable, getDataset, getDir, getDomNodeOrNull, getEnterKeyHint, getHidden, getInnerText, getLang, getLocalName, getNodeName, getOffsetHeight, getOffsetLeft, getOffsetParent_js, getOffsetTop, getOffsetWidth, getOnabort, getOnanimationcancel, getOnanimationend, getOnanimationiteration, getOnanimationstart, getOnauxclick, getOnblur, getOncancel, getOncanplay, getOncanplaythrough, getOnchange, getOnclick, getOnclose, getOncontextmenu, getOncopy, getOncuechange, getOncut, getOndblclick, getOndrag, getOndragend, getOndragenter, getOndragleave, getOndragover, getOndragstart, getOndrop, getOndurationchange, getOnemptied, getOnended, getOnerror, getOnfocus, getOngotpointercapture, getOninput, getOninvalid, getOnkeydown, getOnkeypress, getOnkeyup, getOnload, getOnloadeddata, getOnloadedmetadata, getOnloadstart, getOnlostpointercapture, getOnmousedown, getOnmouseenter, getOnmouseleave, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnmousewheel, getOnmozfullscreenchange, getOnmozfullscreenerror, getOnpaste, getOnpause, getOnplay, getOnplaying, getOnpointercancel, getOnpointerdown, getOnpointerenter, getOnpointerleave, getOnpointermove, getOnpointerout, getOnpointerover, getOnpointerup, getOnprogress, getOnratechange, getOnreset, getOnresize, getOnscroll, getOnscrollend, getOnseeked, getOnseeking, getOnselect, getOnselectionchange, getOnselectstart, getOnstalled, getOnsubmit, getOnsuspend, getOntimeupdate, getOntoggle, getOntransitioncancel, getOntransitionend, getOntransitionrun, getOntransitionstart, getOnvolumechange, getOnwaiting, getOnwheel, getOuterText, getParentHTMLElement, getPosX, getPosY, getPrefix, getStyle, getTabIndex, getTitle, getVAlign, getWidthOrHeight, isAncestorOfEventTarget, isAutofocus, isEndTagForbidden, isIsContentEditable, isLowerCaseInOuterHtml, isSpellcheck, setAccessKey, setAlign, setAttribute, setAutofocus, setCh, setChOff, setColorAttribute, setContentEditable, setDir, setDomNode, setEnterKeyHint, setHidden, setInnerText, setLang, setOnabort, setOnanimationcancel, setOnanimationend, setOnanimationiteration, setOnanimationstart, setOnauxclick, setOnblur, setOncancel, setOncanplay, setOncanplaythrough, setOnchange, setOnclick, setOnclose, setOncontextmenu, setOncopy, setOncuechange, setOncut, setOndblclick, setOndrag, setOndragend, setOndragenter, setOndragleave, setOndragover, setOndragstart, setOndrop, setOndurationchange, setOnemptied, setOnended, setOnerror, setOnfocus, setOngotpointercapture, setOninput, setOninvalid, setOnkeydown, setOnkeypress, setOnkeyup, setOnload, setOnloadeddata, setOnloadedmetadata, setOnloadstart, setOnlostpointercapture, setOnmousedown, setOnmouseenter, setOnmouseleave, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnmousewheel, setOnmozfullscreenchange, setOnmozfullscreenerror, setOnpaste, setOnpause, setOnplay, setOnplaying, setOnpointercancel, setOnpointerdown, setOnpointerenter, setOnpointerleave, setOnpointermove, setOnpointerout, setOnpointerover, setOnpointerup, setOnprogress, setOnratechange, setOnreset, setOnresize, setOnscroll, setOnscrollend, setOnseeked, setOnseeking, setOnselect, setOnselectionchange, setOnselectstart, setOnstalled, setOnsubmit, setOnsuspend, setOntimeupdate, setOntoggle, setOntransitioncancel, setOntransitionend, setOntransitionrun, setOntransitionstart, setOnvolumechange, setOnwaiting, setOnwheel, setOuterText, setSpellcheck, setStyle, setTabIndex, setTextContent, setTitle, setVAlign, setWidthOrHeight, toStringafter, append, before, closest, createAttributesObject, createEventHandler, getAttribute, getAttributeNodeNS, getAttributeNS, getAttributes, getChildElementCount, getChildren, getClassList, getClassName_js, getClientHeight, getClientLeft, getClientRects, getClientTop, getClientWidth, getElementsByClassName, getElementsByTagName, getElementsByTagNameNS, getFirstElementChild, getHTML, getId, getInnerHTML, getInnerHTML, getLastElementChild, getNamespaceURI, getNextElementSibling, getOnbeforecopy, getOnbeforecut, getOnbeforepaste, getOnsearch, getOnwebkitfullscreenchange, getOnwebkitfullscreenerror, getOuterHTML, getParentElement, getPreviousElementSibling, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth, getTagName, hasAttribute, hasAttributeNS, hasAttributes, insertAdjacentElement, insertAdjacentHTML, insertAdjacentText, isDisplayNone, matches, mozMatchesSelector, prepend, printChildren, printNode, querySelector, querySelectorAll, releaseCapture, remove, removeAttribute, removeAttributeNode, removeAttributeNS, replaceChildren, replaceWith, scroll, scrollBy, scrollIntoView, scrollIntoViewIfNeeded, scrollTo, setAttributeNode, setAttributeNS, setCapture, setClassName_js, setId, setInnerHTML, setOnbeforecopy, setOnbeforecut, setOnbeforepaste, setOnsearch, setOnwebkitfullscreenchange, setOnwebkitfullscreenerror, setOuterHTML, setScrollLeft, setScrollTop, toggleAttribute, webkitMatchesSelectorafter, append, appendChild, before, cloneNode, compareDocumentPosition, contains, getBaseURI, getChildNodes, getFirstChild, getJavaScriptNode, getLastChild, getNextSibling, getNodeType, getNodeValue, getOwnerDocument, getParent, getParentNode, getPreviousSibling, getRootNode, getTextContent, hasChildNodes, insertBefore, insertBeforeImpl, isEqualNode, isSameNode, lookupPrefix, normalize, prepend, removeChild, replaceChild, replaceChildren, replaceWith, setNodeValueaddEventListener, clearEventListenersContainer, dispatchEvent, executeEventLocally, fireEvent, getEventHandler, getEventListenersContainer, hasEventHandlers, isEventHandlerOnWindow, removeEventListener, setEventHandlerclone, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getPrototype, getScriptableFor, getWindow, getWindow, getWindowFromTopCallScope, getWithPreemption, has, hasInstance, initParentScope, makeScriptableFor, put, setClassName, setDomNode, setParentScope, setupPromise, setupRejectedPromiseapplyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkNotSealed, checkPropertyChangeForSlot, checkPropertyChangeForSlot, checkPropertyDefinition, checkSlotRemoval, defineBuiltinProperty, defineBuiltinProperty, defineBuiltInProperty, defineBuiltInProperty, defineBuiltInProperty, defineBuiltInProperty, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureScriptableObjectButNotSymbol, ensureSymbolScriptable, ensureType, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getSuperProperty, getSuperProperty, getSuperProperty, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putOwnProperty, putOwnProperty, putOwnProperty, putProperty, putProperty, putProperty, putSuperProperty, putSuperProperty, putSuperProperty, querySlot, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setCommonDescriptorProperties, setExternalArrayData, setGetterOrSetter, setPrototype, sizecreateSlotMappublic void jsConstructor()
jsConstructor in class HTMLElementpublic String getType()
public HtmlTextArea getDomNodeOrDie()
getDomNodeOrDie in class HTMLElementpublic String getValue()
value attribute.getValue in class HTMLElementvalue attributepublic void setValue(Object value)
value attribute.setValue in class HTMLElementvalue - the new valuepublic int getCols()
public void setCols(String cols)
cols - the number of columns in this text areapublic int getRows()
public void setRows(String rows)
rows - the number of rows in this text areapublic String getDefaultValue()
public void setDefaultValue(String defaultValue)
defaultValue - the textarea's default value, used if the containing form gets resetpublic int getTextLength()
textLength attribute.public int getSelectionStart()
selectionStart attribute.public void setSelectionStart(int start)
selectionStart attribute.start - selection startpublic int getSelectionEnd()
selectionEnd attribute.public void setSelectionEnd(int end)
selectionEnd attribute.end - selection endpublic void setSelectionRange(int start,
                              int end)
start - the index of the first character to selectend - the index of the character after the selectionpublic void select()
public boolean isReadOnly()
readOnly attribute.public void setReadOnly(boolean readOnly)
readOnly attribute.readOnly - the new valuepublic int getMaxLength()
public void setMaxLength(String maxLength)
maxLength - maximum number of characters in this text area.public int getMinLength()
public void setMinLength(String minLength)
minLength - minimum number of characters in this text area.public String getPlaceholder()
placeholder attribute.placeholder attributepublic void setPlaceholder(String placeholder)
placeholder attribute.placeholder - the new placeholder valuepublic NodeList getLabels()
public boolean checkValidity()
public boolean isRequired()
required property.required propertypublic void setRequired(boolean required)
required property.required - the new valuepublic String getName()
name.getName in class HTMLElementpublic void setName(String newName)
name.setName in class HTMLElementnewName - the new namepublic boolean isDisabled()
isDisabled in class HTMLElementpublic void setDisabled(boolean disabled)
setDisabled in class HTMLElementdisabled - True if this is to be disabledpublic HTMLFormElement getForm()
form attribute.getForm in class HTMLElementform attributepublic boolean isWillValidate()
public ValidityState getValidity()
public void setCustomValidity(String message)
message - the new messageCopyright © 2002–2025 Gargoyle Software Inc.. All rights reserved.