4 ms·
I really like being able to use Javascript's prompt() and alert() dialogs (when the case really calls for a popup, of course) for the reasons you describe. But
by mcav 17y ago
I really like being able to use Javascript's prompt() and alert() dialogs (when the case really calls for a popup, of course) for the reasons you describe. But it seems like some browser vendors are pushing to make them as cumbersome as possible. Internet Explorer, for instance, will alert the user with a security warning if you use prompt(), saying "This page wants to ask you for information from a script" or something like that. I've encountered quite a few people who think that's a bug in my site's code.
- troels 17y agoI know it isn't a direct answer to what you are asking for, but in general I think that modal interfaces should be used very sparingly, if at all. In most cases, you can construct the interface in a non-modal way, and you end up with a better user experience. It's not always easy, but I think it's usually the better solution.