[whatwg] Can we deprecate alert(), confirm(), prompt() ?

Ojan Vafai ojan at chromium.org
Mon Feb 28 21:38:32 PST 2011


FWIW, chromium is planning on experimenting with disallowing modal dialogs
during the beforeunload/unload events.
http://code.google.com/p/chromium/issues/detail?id=68780

On Tue, Mar 1, 2011 at 11:57 AM, Tab Atkins Jr. <jackalmage at gmail.com>wrote:

> On Mon, Feb 28, 2011 at 4:49 PM, Peter Kasting <pkasting at google.com>
> wrote:
> > On Mon, Feb 28, 2011 at 4:42 PM, Ian Hickson <ian at hixie.ch> wrote:
> >
> >> > 2. if we are still keeping them, can we disable them in
> >> > onbeforeunload/onunload[/onhide] etc. Many sites add extra dialogs in
> >> > those events to confuse users, so that they can trap users for little
> >> > longer.
> >>
> >> That's not a bad idea. I recommend approaching the browser vendors to
> see
> >> if they are willing to implement it; if they do, then updating the spec
> >> accordingly would be a no-brainer.
> >
> >
> > Isn't this important for the "you're trying to navigate away from gmail
> with
> > an open draft; abandon changes y/n?" case?
>
> No, that's handled by having the onbeforeunload handler return a
> string containing the query you want to show.
>
> ~TJ
>



More information about the whatwg mailing list