setTitle
The getTitle method gets the current title of the document. setTitle defines the document's title that is shown in a browser's title bar or a page's tab.
document.setTitle("Test")Examples
document.setTitle("New Title!")document.addEventListener("DOMContentLoaded",function()
document.setTitle("New Title!")
end)Last updated
Was this helpful?