THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML DOM Title Object


Title Object

The Title object speaks to a HTML <title> element.

Access a Title Object

You can get to a <title> component by utilizing getElementsByTagName():

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

Create a Title Object

You can make a <title> component by utilizing the document.createElement() method:

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

Title Object Properties

Property Description
text Sets or returns the content of the report's title

Standard Properties and Events

The Title object likewise underpins the standard properties and events.


Related Pages

HTML tutorial: HTML Head

HTML reference: HTML <title> tag