APIdia Launch Partner
Top Description Methods
org.w3c.dom.html

public Interface HTMLTextAreaElement

extends HTMLElement

Multi-line text field. See the TEXTAREA element definition in HTML 4.0.

See also the Document Object Model (DOM) Level 2 Specification.

Since
1.4, DOM Level 2

Method Summary

Modifier and TypeMethod and Description
public void
blur()

Removes keyboard focus from this element.

public void
focus()

Gives keyboard focus to this element.

public String
getAccessKey()

A single character access key to give access to the form control.

public int
getCols()

Width of control (in characters).

public String
getDefaultValue()

Represents the contents of the element.

public boolean
getDisabled()

The control is unavailable in this context.

public HTMLFormElement
getForm()

Returns the FORM element containing this control.

public String
getName()

Form control or object name when submitted with a form.

public boolean
getReadOnly()

This control is read-only.

public int
getRows()

Number of text rows.

public int
getTabIndex()

Index that represents the element's position in the tabbing order.

public String
getType()

The type of this form control.

public String
getValue()

Represents the current contents of the corresponding form control, in an interactive user agent.

public void
select()

Select the contents of the TEXTAREA .

public void
setAccessKey(String accessKey)

public void
setCols(int cols)

public void
setDefaultValue(String defaultValue)

public void
setDisabled(boolean disabled)

public void
public void
setReadOnly(boolean readOnly)

public void
setRows(int rows)

public void
setTabIndex(int tabIndex)

public void
Inherited from org.w3c.dom.html.HTMLElement:
getClassNamegetDirgetIdgetLanggetTitlesetClassNamesetDirsetIdsetLangsetTitle

Method Detail

blurback to summary
public void blur()

Removes keyboard focus from this element.

focusback to summary
public void focus()

Gives keyboard focus to this element.

getAccessKeyback to summary
public String getAccessKey()

A single character access key to give access to the form control. See the accesskey attribute definition in HTML 4.0.

getColsback to summary
public int getCols()

Width of control (in characters). See the cols attribute definition in HTML 4.0.

getDefaultValueback to summary
public String getDefaultValue()

Represents the contents of the element. The value of this attribute does not change if the contents of the corresponding form control, in an interactive user agent, changes. Changing this attribute, however, resets the contents of the form control.

getDisabledback to summary
public boolean getDisabled()

The control is unavailable in this context. See the disabled attribute definition in HTML 4.0.

getFormback to summary
public HTMLFormElement getForm()

Returns the FORM element containing this control. Returns null if this control is not within the context of a form.

getNameback to summary
public String getName()

Form control or object name when submitted with a form. See the name attribute definition in HTML 4.0.

getReadOnlyback to summary
public boolean getReadOnly()

This control is read-only. See the readonly attribute definition in HTML 4.0.

getRowsback to summary
public int getRows()

Number of text rows. See the rows attribute definition in HTML 4.0.

getTabIndexback to summary
public int getTabIndex()

Index that represents the element's position in the tabbing order. See the tabindex attribute definition in HTML 4.0.

getTypeback to summary
public String getType()

The type of this form control. This the string "textarea".

getValueback to summary
public String getValue()

Represents the current contents of the corresponding form control, in an interactive user agent. Changing this attribute changes the contents of the form control, but does not change the contents of the element. If the entirety of the data can not fit into a single DOMString , the implementation may truncate the data.

selectback to summary
public void select()

Select the contents of the TEXTAREA .

setAccessKeyback to summary
public void setAccessKey(String accessKey)
setColsback to summary
public void setCols(int cols)
setDefaultValueback to summary
public void setDefaultValue(String defaultValue)
setDisabledback to summary
public void setDisabled(boolean disabled)
setNameback to summary
public void setName(String name)
setReadOnlyback to summary
public void setReadOnly(boolean readOnly)
setRowsback to summary
public void setRows(int rows)
setTabIndexback to summary
public void setTabIndex(int tabIndex)
setValueback to summary
public void setValue(String value)