Click here to Skip to main content
15,124,736 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
How to change font when we display a alert message usign JScript?

<script language="Javascript">
alert ("Try Again!!")

I want to display output of try again !! with Dark Red font is it possible? If so kindly mention how. And Thanks In Advance.

Can't be done with built in alert box. The easiest way is to have a hidden div that you show when needed.

better use Jquery model alert or bootstrap model..
Mannava Siva Aditya 16-Jul-13 4:07am
Thanks Mulla but i am trying with javascript itself I know we can do that with jQuery and ajax.
Mulla Rameez 16-Jul-13 5:16am
chk out this;
Mannava Siva Aditya 16-Jul-13 5:51am
sounds interesting... thought of creating a custom alert like by creating a pannel and making it enable and disable.But now I shall test with this one.

Thanks Mulla Rameez.
its not possible use jquery alert css or do by modalpopup which will display your msg and add close button for that one
Mannava Siva Aditya 16-Jul-13 4:09am
Thanks ankit i know we can do with JQuery but i would like to try out with the javascript itself!!
Dholakiya Ankit 16-Jul-13 4:20am
only javascript i have no idea please give me and if you found
Mannava Siva Aditya 16-Jul-13 5:44am
Sure let u know if any solution comeout of it
Dholakiya Ankit 16-Jul-13 5:53am
Dholakiya Ankit 18-Jul-13 7:54am
so you accepteed its not possbile right?
i think it should be not possible .... well but am trying for you.......
Mannava Siva Aditya 12-Jul-13 6:49am
Thanks Manuel. I am able to do it by taking custom alert. But like to try with the default alert by making bold within the font.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900