Displaying js alert message in bold


Can anyone guide me how to display the js alert message in bold text.


You can’t style a js alert box. About the only thing you can do is use "
" to create a line break. You can create your own function which reveals a hidden div that is styled to look like an alert box(width, height, position, etc). Using css, you can make your custom alert box any color you want, with any font you want, and with any font weight you want. Of course, that’s a lot more work.