Dynamic Title Changer
Re-engage your visitors. This script detects when a user switches to a different browser tab and instantly changes the page title to grab their attention.
Test it now: Click on a different tab in your browser, then look back at this tab's title.
Status: You are here
Copy the Script
<script>
var originalTitle = document.title;
window.onblur = function() {
document.title = "Miss you! Come back!";
};
window.onfocus = function() {
document.title = originalTitle;
};
</script>
Frequently Asked Questions
It uses the `window.onblur` event (triggered when the user leaves the tab) and `window.onfocus` (triggered when they return).
It can be effective if used creatively (e.g., updating a cart count), but avoid aggressive messages like 'HEY COME BACK!!!' as that looks unprofessional.
Yes, switching apps on a mobile device typically triggers the blur event.