Name

title — NN 2 IE 3 DOM n/a

Synopsis

Read/Write

Unlike the title property for objects that reflect HTML elements, the document.title property refers to the content of the TITLE element defined in the HEAD portion of a document. The title content appears in the browser’s titlebar to help identify the document. This is also the content that goes into a bookmark listing for the page.

Example

document.title = "Fred\'s Home Page"

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.