Does work in FF (asks if one wants to continue on unloading the page
...), problems in Chrome
http://jsfiddle.net/zalun/QZYuU/3/

Chrome has problems with onbefore unload and iframes, use show instead
http://jsfiddle.net/zalun/QZYuU/3/show/

Piotr

On 05/14/10 09:58, Sitthykun LY wrote:
> closeForm: function() {
>          window.addEvent('beforeunload', function(event){
>               event.stop(); /// it does not work
>               this.showMsg();
>          }.bind(this));
>   },


-- 
blog  http://piotr.zalewa.info
jobs  http://webdev.zalewa.info
twit  http://twitter.com/zalun
face  http://facebook.com/zaloon

Reply via email to