views:

38

answers:

3

Is it possible to add Bullet points for the warning/Alert message box for a webpage using HTML and Java Script? If not, what would be the best possbile way to create one of those?

The message box should have the below properties:

  1. Warning Image
  2. Message box header
  3. Bullet points listing summary
  4. Accept and Reject button

Thanks in advance!!

+3  A: 

The standard confirm function cannot do all this; instead, you can use jQuery UI Dialog.

SLaks
A: 

There may be a way to sneak bullet points into an alert() box using some Unicode shenanigans, but in general, these boxes can not be styled. Individually labeled buttons are totally out of the question.

You would have to use a custom-made library like JQUery UI dialogs. Alternatively, here is a more light-weight tutorial on building custom alert boxes.

Pekka
A: 

I believe you need to develop a custom alert box. I may develop it using jQuery colorbox. or jQuery UI Dialogs

sushil bharwani