- From: Aryeh Gregor <Simetrical+w3c@gmail.com>
- Date: Thu, 25 Nov 2010 18:22:58 -0500
On Thu, Nov 25, 2010 at 1:29 AM, Biju <bijumaillist at gmail.com> wrote: > 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? It's a very basic feature, necessary even for "Hello World"-type coding in JavaScript. We shouldn't require authors to use libraries to get this functionality. > 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. This is a browser implementation issue. Browsers should allow users to suppress modal dialogs, and should make them tab-modal instead of window-modal. They're in the process of doing this -- no spec change is needed, and a spec change will not speed the process. > 3. also if we are keeping them, can we add an optional parameter for a > timeout milliseconds to self dismiss the modal prompt. You mean the author should be able to add a parameter saying "dismiss this alert() after 10 seconds if the user hasn't clicked"? That's a bad idea. What if I opened the tab in the background, or had another window active, or was just off getting coffee when the dialog popped up? I'd never see it. We shouldn't make it easy for authors to do this.
Received on Thursday, 25 November 2010 15:22:58 UTC