function ConfirmClose() { var params = ['height=' + screen.height, 'width=' + screen.width].join(','); var popup = window.open("Home.aspx", 'popup_window', params); popup.moveTo(0, 0); } window.onbeforeunload = ConfirmClose; $(document).ready(function () { $('a[rel!=ext]').click(function () { window.onbeforeunload = null; }); $('form').submit(function () { window.onbeforeunload = null; }); });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)