Bug 14489 - alert box (function) in javascript can be much improved!
Summary: alert box (function) in javascript can be much improved!
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: 523.x (Safari 3)
Hardware: PC Windows XP
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-01 02:24 PDT by Tore B. Krudtaa
Modified: 2007-07-06 05:05 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tore B. Krudtaa 2007-07-01 02:24:10 PDT
Today if you use alert() in javascript in Safari beta for windows then
the alert box shows the safari icon to the left of the text.

Why display the Safari icon. Pretty much nothing to do there.

Why not display a similar icon to what you get in Firefox and IE.
That would be more informative.
Alert boxes are for giving a message to the enduser, and are of great help
when building online database frontends (AOT). Why whould I want to display 
the Safari icon in an alert box is beyond me!

Then I have allways hated the ugly default title in javascript alerts, 
where you get a useless forced title in e.g. Firefox and IE.
Safari here comes with a new and even uglier solution.
You put the junk "title" above my message to the enduser.

You could do better than all the other browsers out there by checking for 
a second parameter in the alert() function.
I would like to be able to do this:

alert("Message comes here as normal","Title comes here");

Then, the other browsers out there would work as before, and Safari could make it possible to display a nice title in the alertbox.

Hey you could even make it like this:
If no second parameter is used then display as now (with another icon though),
and if a second parameter is used then put that in title of alert box and do
not put out the junk title before my text.

Can you please implement that?

Then you could follow up on that and also change the confirm accordingly....

Regards
Comment 1 Alexey Proskuryakov 2007-07-06 05:05:21 PDT
How alerts look is determined by Safari, and not WebKit. So, we in the open source WebKit project cannot change it. Please file bugs to <http://bugreport.apple.com> for Apple engineers to take a look (free registration required). Please file each issue as a separate report to maximize the chances of it being investigated properly.

Having said that, I've got a few personal comments about your suggestions:

> Why whould I want to display the Safari icon in an alert box is beyond me!

This is a platform convention on Mac OS X (Firefox does the same there). It definitely has some good reasons behind it, so one needs equally good reasons to dispute it. Of course, Mac OS X platform conventions do not necessarily apply to Windows applications, so it's a valid request to follow Windows UI conventions.

> alert("Message comes here as normal","Title comes here");

AFAIK, browsers do not support that for security reasons. I haven't ever deeply researched this, though, so I don't know the details.