W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2010

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

From: Nils Dagsson Moskopp <nils-dagsson-moskopp@dieweltistgarnichtso.net>
Date: Thu, 25 Nov 2010 08:30:13 +0100
Message-ID: <20101125083013.28a74a86@desudesudesu>
Biju <bijumaillist at gmail.com> schrieb am Thu, 25 Nov 2010 02:29:31

> 1. Can we deprecate alert(), confirm(), prompt() ?
> At present many web2.0 js libs are providing alternate [and cool
> looking] methods to achieve use cases where we need to use alert(),
> confirm(), prompt(). So do we need those modal dialogs any longer?

If sites rely on them, it is not possible to deprecate them.

However, I melieve browsers are making these dialogs tab-modal.

> 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.

?Do you want to save your complicated mashup??

> 3. also if we are keeping them, can we add an optional parameter for a
> timeout milliseconds to self dismiss the modal prompt.

Why would you need that?

Nils Dagsson Moskopp // erlehmann
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 230 bytes
Desc: not available
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20101125/0d42eab3/attachment-0001.pgp>
Received on Wednesday, 24 November 2010 23:30:13 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:28 UTC