Karta Wykryj JavaScript Wyjdź

window.onblur = function() {
    console.log("the user just switched tabs");
};
Friendly Hawk