javascript Element outerText
@March 15, 2008, 1:22 a.m.
outerText | Firefox/Netscape/NN n/a IE 4 Chrome/Safari/DOM n/a |
|
Read/Write |
Indicates the rendered text (but not any tags) of the current element. If you want the rendered text as well as the element's HTML tags, see outerHTML. Any changes to this property are not rendered through the HTML parser, meaning that any HTML tags you include are treated as displayable text content only. You may change this property only after the document has fully loaded. Changes to the outerText property are not reflected in the source code when you view the source in the browser. This property is not supported in many objects in the Macintosh version of IE 4. |
|
Example | |
document.getElementById("elementID").outerText = "UNESCO";
|
|
Value | |
String. |
|
Default | |
Empty string. |
Permanent URL:
http://javascript.gakaa.com/element-outertext.aspx
Powered by Linode.