changing page title using javascript code example
Example 1: javascript change page title
document.title = "My New Page Title"; //change/set page title in JavaScript
Example 2: change html title
<title>This is the title</title>
document.title = "My New Page Title"; //change/set page title in JavaScript
<title>This is the title</title>