tab-flash-retention
<script>
var tabF = (function() {
var ot = document.title,
msg = 'Come Back - More Offers',
toId,
blink = function() {
document.title = document.title == msg ? 'Thank You' : msg;
},
clear = function() {
setTimeout(function() {
clearInterval(toId);
document.title = ot;
window.onmousemove = null;
toId = null;
}, 1000);
};
return function() {
if (!toId) {
toId = setInterval(blink, 1000);
window.onmousemove = clear;
}
};
})();
tabF();
</script>