How do I code an HTML alert box with the "i" icon for "Information"?
I currently am using an alert box to show information about User Name and Password requirements during registration. (see http:TheBossReportCard.com)
I would like the informational symbol “blue circled i” to be displayed versus the alert symbol “yellow triangle !”. I have searched everywhere for the code but have been unsuccessful.
Observing members:
0
Composing members:
0
6 Answers
This question is extremely unclear. Can you give an example of what you’re talking about?
Hmmmm, I’ll try.
I have coded an alert which is a pop-up that gives the user a message. For example, I have an alert that is titled “Password Rules” that the user can click on. When they do, a message box pops up. There is an icon in the message box which shows an exclaimation point inside a triangle indicating an alert, along with the password rules.
I know there is another icon available, with the letter i inside a blue circle indicating this is an information message versus an alert message. Sun has a page which shows it at http://java.sun.com/products/jlf/ed2/book/HIG.Dialogs5.html , but they don’t explain how to code it. I’ve seen other sites in the past with it too, but don’t remember where.
Ah. As a web developer, unfortunately you don’t really have control over those icons. They’re controlled by the OS or by the web browser. You can’t change them, as far as I’m aware.
If you can, it’s almost certainly through some proprietary property that doesn’t work across browsers. But I’ve never heard of it.
Why not just use something like Lightbox Gone Wild instead? That way you can style it however you want.
I’m assuming you are using a JavaScript alert now.
You can’t change them (at least not in web programming). Like lapilofu said, it’s controlled by the OS.
well, they’re controlled by your browser, but yeah…
Anyways, those alert messages are annoying not not very user friendly. i’d recommend a lightbox.
Answer this question
This question is in the General Section. Responses must be helpful and on-topic.