wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes change font size or color in javascript alert box Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "change font size or color in javascript alert box" Watch "change font size or color in javascript alert box" New topic
Author

change font size or color in javascript alert box

Raji ram
Greenhorn

Joined: Oct 14, 2003
Posts: 19
Hi,
Have any of you tried changing the font size or color in javascript alert box.
If so, can you please share it with me?
Thanks,
Raji.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60802
    
  65

Sorry. No can do.
bear


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ashok Mash
Ranch Hand

Joined: Oct 13, 2000
Posts: 1936
A workaround is to write a function to produce a window of your own font and color, name it 'alert()' (with proper parameters ofcourse) and make it available globally. In effect, it overrides the default alert dialog, and it worked well for me.


[ flickr ]
Raji ram
Greenhorn

Joined: Oct 14, 2003
Posts: 19
Thanks Ashok. Will try that.
Regards,
Raji.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: change font size or color in javascript alert box
 
Similar Threads
Passed With 141/155 (~91%)
Fontsize on Alert Boxes
congratulations
Really meaningless but...
how to change font for alert box using Javascript