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

Nils Dagsson Moskopp nils-dagsson-moskopp at dieweltistgarnichtso.net
Wed Nov 24 23:30:13 PST 2010


Biju <bijumaillist at gmail.com> schrieb am Thu, 25 Nov 2010 02:29:31
-0400:

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


Cheers,
-- 
Nils Dagsson Moskopp // erlehmann
<http://dieweltistgarnichtso.net>
-------------- 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-0002.pgp>


More information about the whatwg mailing list