Contents Index Topic Contents | ||
Previous Topic: outerHTML Next Topic: overflow |
outerText
Description
Sets or retrieves the text of the current element.
Syntax
object.outerText[ = outerText]
Settings
This read-write property can be any valid string. When setting this property, the given string completely replaces the original text in the element, except for <html>, <head>, and <title> tags.
Note You cannot set this property 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, you can only use JScript to create new events to handle the newly formed tags. VBScript is not supported.
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BGSOUND, BIG, BLOCKQUOTE, BR, BUTTON, CENTER, CITE, CODE, COMMENT, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, H1, H2, H3, H4, H5, H6, HR, I, IFRAME, IMG, INPUT, INS, KBD, LABEL, LEGEND, LI, LISTING, MAP, MARQUEE, MENU, OBJECT, OL, P, PLAINTEXT, PRE, Q, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TEXTAREA, TT, U, UL, VAR, XMP
See Also
insertAdjacentText method
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.