English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML DOM title Attribute

HTML DOM Document Object

titleThe current title of the document being set or returned (the text in the <title> element).

Syntax:

Return Title Property:

document.title

Set Title Property:

document.title = newTitle
var x = document.title;
Test See‹/›

Browser Compatibility

All browsers fully support the title property:

Property
titleIsIsIsIsIs

Appropriate Value

ValueDescription
newTitleThe new title of the document

Technical Details

Return Value:A string representing the document title
DOM Version:DOM 2Level

HTML DOM Document Object