[webkit-help] Window close messages

Brian Edmond brian at cranksoftware.com
Wed Sep 23 06:36:05 PDT 2009


Hi,

 

I have a page that try's to close the main window though Java Script by
calling "window.close()".  In the ChromeClient I see that the method
closeWindowSoon() gets called.  I would like to be able to popup a dialog
and ask the user if this is allowed.  I was wondering how I would cancel the
close if this is not allowed?  Is there another method I should be using
instead of closeWindowSoon()?

 

Thanks,

Brian

 

Brian Edmond

Crank Software Inc.

Office: 613-595-1999

Mobile: 613-796-1320

Online:  <http://www.cranksoftware.com/> www.cranksoftware.com

Check out:  <http://cranksoftware.com/blog/> Crank Software's Blog

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-help/attachments/20090923/c82e35c9/attachment.html>


More information about the webkit-help mailing list