[webkit-help] Window close messages

tonikitoo (Antonio Gomes) tonikitoo at gmail.com
Wed Sep 23 07:08:57 PDT 2009


Brian, as i understood it. It is a general JS question (e.g. if you
were using mozilla and not webkit you'd be asking the same thing). if
it is the case, that is the wrong list.

please have a look at other prompt dialogs commonly used in JS
(confirm and friends).

On Wed, Sep 23, 2009 at 9:36 AM, Brian Edmond <brian at cranksoftware.com> wrote:
> 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: www.cranksoftware.com
>
> Check out: Crank Software’s Blog
>
>
>
> _______________________________________________
> webkit-help mailing list
> webkit-help at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-help
>
>



-- 
--Antonio Gomes


More information about the webkit-help mailing list