• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to display Alert Messages in Bold

 
Ameya Thakur
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Everyone,

I want the alert message which i give using javascript to be bold

I tried with using alert("<b>Hello</b>");

which is not working so is ther any ways in which we could make "Hello" bold

Thanks a lot in advance
-Ameya
 
Anirvan Majumdar
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't utilize HTML formatting when displaying alert boxes. At most, I think you can only utilize simple escape sequences to alter the manner in which the text string is rendered within the alert box.
If you really need to customize your alert messages then you can go for some DHTML effects which simulate the behaviour of a modal window. You can find a nice implementation here
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic