Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM Title Object

HTML DOM Title Object


The Title object

The Title object represents an HTML element.</p>

Access the Title Object

You can use getElementsByTagName() to access element:</p>

var x = document.getElementsByTagName("TITLE")[0];

Try it

Create the Title Object

You can use the document.createElement() function to create element:</p>

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 tag</a></p>