You want to display a pop-up window when you close the site / browser.
For example, this feature works, but it displays a row and all:
[CODE] window.onbeforeunload = function (e) {
return 'Dialog text here.';
}; [/ CODE]
Neither of which there is more thrust comes out. Most pop-up window is done.
That's just not able to withdraw it when the window is closed site.
There is still such, for example, the function:
[CODE] $ (window). Unload (function () {alert ("Bye now!");}); [/ CODE]
But for some reason it does not work.