document.title="New Title";
// Changing the website's <title> document.title = "Test";
const docTitle1 = document.querySelector('title'); docTitle1.textContent = 'Document title here';