aspose file tools
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
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply 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: 56529
    
  14

Sorry. No can do.
bear


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: change font size or color in javascript alert box
 
Similar Threads
congratulations
Passed With 141/155 (~91%)
Really meaningless but...
how to change font for alert box using Javascript
Fontsize on Alert Boxes