DHTML Object Properties DHTML Objects
Sets or retrieves the text of the current object.
HTML |
N/A |
Script |
object.outerText [ = sTxt ] |
The property is read/write with no default value.
When setting the property, the given string completely replaces the original text in the object, except for HTML, HEAD, and TITLE tags.
The property cannot be set while the document is loading. Wait for the onload event before attempting to set it. If a tag is dynamically created using TextRange, innerHTML, or outerHTML, use JScript® ( compatible with ECMA-262 language specification ) to create new events to handle the newly formed tags. VBScript is not supported.
OuterText is read-only on the following objects: TBODY, TD, TFOOT, TH, THEAD, TR.
innerHTML, innerText, outerHTML