Javascript Reference
Categories: TITLE

javascript TITLE text

@March 15, 2008, 1:22 a.m.
textFirefox/Netscape/NN 6 IE 4 Chrome/Safari/DOM 1  

Read/Write  

Specifies 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 title bar (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. Nor does the change appear in the title bar of IE for Windows.

 
Example
 
document.getElementsByTagName("title")[0].text = "Welcome, Dave!";
 
Value

String.

 
Default

None.


Powered by Linode.