The document.title property gets or sets the current title of the document.
document.title
MDN Reference