Name
text — NN n/a IE 4 DOM n/a
Synopsis
Read/Write
The text contained by the text range. In the case of a
TextRange
object of a BODY
element, this consists of only the text that is rendered, but none of
the HTML tags behind the scenes.
Example
var rangeText = document.body.createTextRange( ).text
Value
String.
Default
None.
Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.