html dynamically change the title of current page code example
Example: javascript change page title
document.title = "My New Page Title"; //change/set page title in JavaScript
document.title = "My New Page Title"; //change/set page title in JavaScript