Name

text — NN n/a IE 4 DOM n/a

Synopsis

Read-only

The text content of the element. For the TITLE element, this is the text between the start and end tags that also appears in the browser window’s titlebar (usually along with some identification of the browser brand). Changes you make to this property do not appear in the source code you view from the browser.

Example

document.all.tags("HEAD")[0].text = "Welcome, Dave!"

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.