javascript change webpage title

JavaScript
document.title = "My New Page Title"; //change/set page title in JavaScript
Source

Also in JavaScript: