outerText - in javascript, the text (without attributes) displayed
by an element. e.g. <I ID=iHurt><B ID=bHurt>Ouch!</B></I> <INPUT TYPE=Button VALUE="Hurt Me Again"
OnClick="alert( document.all.bHurt.outerText )">
displays:
Ouch!
The outerText can also be set. e.g. <INPUT TYPE=Button VALUE="Change" OnClick="document.all.bHurt.outerText='That was nothing'">
displays:
Note that the enclosing <B . . .> </B> have been blown away, causing the Hurt Me Again button
to crash (because there is no bHurt id) (innerText does not do this).
The iHurt id can still be used in a similar button:
See innerTextinnerHTMLouterHTML.
Note that only innerHTML works in Mozilla based browsers such as Netscape.