How can I format the text in a JavaScript alert box? I need a word in the text to be underlined.
You can't. Use external lib as JQuery UI Dialog or your own implementation.