Hi,
I want to display Jquery UI dialog if someone tries to navigate/close the browser.
I am using the following code
- function showPopup() {
jQuery(document).ready(function() {
jQuery("#divPopup").dialog({
bgiframe: true, height: 356,width: 600,autoOpen: true, modal: true
});
};
return false;
}
<body onbeforeunload="return showPopup();">
