Click to See Complete Forum and Search --> : text formatting in alert


jones
01-12-2004, 09:07 AM
hi all,

when using alert("foo"), can the font size, color, etc. of the text be changed? also, can the alert box size be defined?

jones

Fang
01-12-2004, 09:11 AM
No. Use a popup window or element

jones
01-12-2004, 09:12 AM
good to know. thanks for the quick reply!

jones

TheBearMay
01-12-2004, 09:14 AM
No and yes...No if you want to stick with the JS alert method, yes if you want to create/open a modal window.. Several threads on this:

http://forums.webdeveloper.com/search.php?s=&action=showresults&searchid=190877&sortby=lastpost&sortorder=descending

jones
01-12-2004, 09:23 AM
thanks! a modal window is exactly what i need.

jones

fredmv
01-12-2004, 09:46 AM
Originally posted by jones
a modal window is exactly whatYou do realize that's proprietary IE code, correct? You could emulate it (http://webdevfaqs.com/javascript.php#altpopupfocus) quite easily and provide support for more browsers. ;)