HTML DOM Title Objects
Title Objects
Title object represents an HTML <title> element.
Title Object Access
You can use getElementsByTagName () to access the <title> element:
var x = document.getElementsByTagName ( "TITLE" ) [0]; try
Create Object Title
You can use document.createElement () function to create a <title> element:
var x = document.createElement ( "TITLE" ); try
Title object properties
Attributes | Description |
---|---|
text | Sets or returns the document's title element text message |
Standard properties and events
Title objects support the standard attributes and events .
related articles
HTML Tutorial: HTML head
HTML Reference Manual: HTML <title> tag