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 formatting 1

Status
Not open for further replies.

jewilson2

Technical User
Feb 7, 2002
71
US
Is there a way to control the text in an alert box? IE font size, bold, underline, etc....also is there a way to size the alert box itself?

Thanks,
JW
 
No, you'll have to create your own via window.open(), showModalDialog(), or showModelessDialog().

Adam
while(ignorance){perpetuate(violence,fear,hatred);life=life-1};
 

As Adam has said, you cannot apply formatting rules to a standard alert box.

You can add blank lines to your text, however - which can be used to vaguely control the size of the box (splitting long lines of text makes the box thinner but taller) - by adding "\n" where you want the break to occur.

Hope this helps,
Dan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top