The Title object represents an HTML <title> element.
You can access a <title> element by using getElementsByTagName():
You can create a <title> element by using the document.createElement() method:
Property | 説明 |
---|---|
text | Sets or returns the text of the document's title |
The Title object also supports the standard properties and events.
HTML tutorial: HTML Head
HTML reference: HTML <title> tag