Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript detect tab leave

window.onblur = function() {
    console.log("the user just switched tabs");
};
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #detect #tab #leave
ADD COMMENT
Topic
Name
6+4 =