Javascript Reference
Categories: document

javascript document title

@March 15, 2008, 1:22 a.m.
title Firefox/Netscape/NN 2 IE 3 Chrome/Safari/DOM 1

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. Although the property is read/write, don't be surprised if a browser version does not alter the window titlebar in response.

 
Example
 
document.title = "Fred\'s Home Page";
 
Value

String.

 
Default

None.


Powered by Linode.