How to make this working?
- Code:
$(window).unload(function() {
confirm("Exit confirm");
if(confirm == ok) {
window.close;
}else{
return false;
});