How to detect when mouse leaves window in JavaScript

How to detect when mouse leaves window in JavaScript

More to explore