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

HTML DOM title Property

Document Object Reference Document Object

Definition and Usage

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

Syntax

document.title


Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The title property is supported in all major browsers.


Example

Example

Return the title of the current document:

<html>
<head>
<title>My title</title>
</head>
<body>

The title of the document is:
<script>
document.write(document.title);
</script>

</body>
</html>

Try it yourself »


Document Object Reference Document Object

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE

facebook