Property::setText()
Browser availability: awaiting-browser-support.
Some desktop overloads are not declared by the browser. See the missing signatures in the compatibility contract.
Multi-line strings are written as the element's text instead of a value attribute.
Syntax
Java
.setText(text)
Parameters
| Name | Data Type | Description |
|---|---|---|
| text | String | the element text |
Return
void