This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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 Building Microservices this week in the Design 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: 63232
    
  69

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.
 
Have you checked out Aspose?
 
subject: change font size or color in javascript alert box
 
It's not a secret anymore!