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

HTML DOM title property

HTML DOM title property

Document Object Reference Document Object


Definition and Usage

The title property returns the title of the current document (the text in the HTML title element).

Syntax

document.title


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the title property


Example

Example

Return the title of the current document:

My title

The title of the document is:

Try it »


Document Object Reference Document Object