X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

HTML DOM Title Object


Title Object

The Title object represents an HTML <title> element.

Access a Title Object

You can access a <title> element by using getElementsByTagName():

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

Create a Title Object

You can create a <title> element by using the document.createElement() method:

var x = document.createElement("TITLE"); Try it

Title Object Properties

Property Description
text Sets or returns the text of the document's title

Standard Properties and Events

The Title object also supports the standard properties and events.


Related Pages

HTML tutorial: HTML Head

HTML reference: HTML <title> tag



Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates FREE Website Templates Free HTML Templates

SHARE THIS PAGE

facebook