SyntaxFix
Write A Post
Hire A Developer
Questions
Following worked for me;
$(window).unload(function(event) { if(event.clientY < 0) { //do whatever you want when closing the window.. } });