Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bullet points in Warning Message box for a web page

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!!

like image 555
user485399 Avatar asked Oct 24 '10 16:10

user485399


People also ask

How do I customize my alert box?

The standard alert box in JavaScript does not provide the option to apply CSS. To style your alert box, you need to create a custom one first. The custom alert box will be created using jQuery and styles will be applied to CSS.

What is a message bullet?

Bullet Messenger enables you to easily switch from a voice-based interface to a text-based interface from the top header of the App.


1 Answers

Just an update on this, you can create a bullet in a JavaScript alert box, you just need to use \u2022, so your script would be something like this (\n is a line break):

alert("!!! WARNING !!!\n\nHeader\n\u2022Point1\n\u2022Point2")

This will display (in an alert box):

!!! WARNING !!!

Header

  • Point1
  • Point2
like image 168
Bjorn Behr Avatar answered Oct 13 '22 06:10

Bjorn Behr