This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes  How to display Alert Messages in Bold Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark " How to display Alert Messages in Bold" Watch " How to display Alert Messages in Bold" New topic

How to display Alert Messages in Bold

Ameya Thakur
Ranch Hand

Joined: Feb 04, 2004
Posts: 43
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
Anirvan Majumdar
Ranch Hand

Joined: Feb 22, 2005
Posts: 261
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
Have you checked out Aspose?
subject: How to display Alert Messages in Bold
jQuery in Action, 3rd edition