The DOM title property is used to return the title of the HTML document and also used to sets the value of the title in the document. This property is used to specify the information about title.
- It is used to return the title property
- It is used to sets the title property
document.title = newTitle
Property: The DOM title property contains a value of new title which is used to returns a title of a document.
Supported Browsers: The browser supported by DOM title property are listed below:
- Apple Safari
- Google Chrome
- Internet Explorer
This article is attributed to GeeksforGeeks.org