HTML DOM Title Object
The Title object
The Title object represents an HTML
Access the Title Object
You can use getElementsByTagName() to access
var x = document.getElementsByTagName("TITLE")[0];
Try it
Create the Title Object
You can use the document.createElement() function to create
var x = document.createElement("TITLE");
Try it
Title Object Properties
| property | Description |
|---|---|
| text | Sets or returns the text information of the title element of the document |
Standard properties and events
The Title object supports standard property and Events.
Related Articles
HTML Tutorial: The HTML head
HTML Reference Manual: HTML