Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Alert Box Text Formatting

Status
Not open for further replies.

Nova5555

Programmer
Jul 23, 2002
2
CA
I want to format the text in an alert box, is this possible?
Calling string functions on the text does not work(it displays the HTML). Any ideas?
 
you can insert line breaks using \n:

alert("line 1\nline 2\nline 3"); Tony
reddot.gif WIDTH=400 HEIGHT=2 VSPACE=3

 
I was think more like bolding and highlighting text withing the message. I know about the line breaks but what I want to do is emphasize a certain part of my alert...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top