HTML DOM Title Object

Multi tool use
Multi tool use






<!--
main_leaderboard, all: [728,90][970,90][320,50][468,60]
-->



HTML DOM Title Object



❮ Previous
Next ❯



Title Object


The Title object represents an HTML <title> element.


Access a Title Object


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



Example



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

Try it Yourself »

Create a Title Object


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



Example



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

Try it Yourself »

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





❮ Previous
Next ❯

wU1ep4YrKo22mf,XZaTtsLSfWc7J kQc pW
JT09g8c1YlrB2SYvqC9nmv8TEtWsEpPd c

Popular posts from this blog

Chat program with C++ and SFML

Read files from a directory using Promises

Function to Return a JSON Like Objects Using VBA Collections and Arrays