Title Bar Link Effect
Use every inch of screen space. This script listens for mouse interactions on links and updates the browser tab text (`document.title`) instantly.
Copy the Script
<script>
var originalTitle = document.title;
function changeTitle(txt) {
document.title = txt;
}
function restoreTitle() {
document.title = originalTitle;
}
</script>
<a href="#" onmouseover="changeTitle('Home Page')" onmouseout="restoreTitle()">Home</a>
Frequently Asked Questions
It can be if overused. It works best for playful sites or specific interactive apps. Avoid changing it too rapidly as flashing tab titles looks spammy.
Yes. The script captures the `originalTitle` on load and restores it `onmouseout` so the user doesn't lose track of the page context.
No. Search engines index the `` tag in the HTML source code. JavaScript changes to `document.title` after load generally don't change search rankings.