$(document).ready(function () { $(window).bind("beforeunload", function() { return confirm("Do you really want to close?"); }); });
$(document).ready(function () { $(window).bind("beforeunload", function() { return confirm("Do you really want to close?"); }); });