Return the text of the document's title:
The result of x will be:
The text property sets or returns the text of the document's title.
The text property is supported in all major browsers.
Return the text property:
Set the text property:
Value | Description |
---|---|
text | Specifies the text of the document's title |
Return Value: | A String, representing the text of the document's title |
---|
Change the text of the document's title: