Dynamic Page Title

Example changing the page title using JavaScript.

Preview

Code

<button onclick="document.title = 'New Page Title';">
Change Page Title
</button>

<p>Click the button to update the browser tab title.</p>

More HTML Page Title Examples (3)