I get it working, without jquery :: window.onbeforeunload =
function(){return "Unsaved changes."}
Thx.
On 1/19/07, David Duymelinck <[EMAIL PROTECTED]> wrote:
Unai Martinez schreef:
> How can i detect browser close event?
>
> I've tried something like:
>
> $(window).unload(
> function(){
> alert("close");
> //stop event
> return false;
> }
> );
>
from this forum thread
http://forums.devarticles.com/javascript-development-22/how-to-stop-browser-from-closing-using-javascript-8458.html
i understand there is a window.onbeforeunload event
--
David Duymelinck
________________
[EMAIL PROTECTED]
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/
--
Unai Martinez
[EMAIL PROTECTED]
http://helusinfa.blogspot.com
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/