How can you catch the window exit event?
-
When moving the cursor away from the entire window, you need to catch the eventJavaScript Noah Kelley, Jun 14, 2019
-
So?
document.addEventListener('mouseleave',()=>{
console.log('leave');
})Anonymous
1 Answers
Your Answer
To place the code, please use CodePen or similar tool. Thanks you!