View Full Version : Use italics in a Javascript alert box

12-11-2006, 05:02 PM

I am trying to code an alert box in which a few words in the alert message should be italicized. I know that I need to use some kind of escape sequence to achieve this, but couldn't find anything after searching google and this forum.

For example, how do I make the word "You" in the following code italicized?

alert("You are the one!");

Thanks in advance.

12-11-2006, 05:04 PM
You can't have italic text using alert().

12-11-2006, 05:05 PM
Thanks for the quick reply!