Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET Javascript .NET , +
How to change font when we display a alert message usign JScript?
 
<script language="Javascript">
<!--
alert ("Try Again!!")
//-->
</script>
 
I want to display output of try again !! with Dark Red font is it possible? If so kindly mention how. And Thanks In Advance.
Posted 12-Jul-13 1:12am
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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..
  Permalink  
Comments
Mannava Siva Aditya at 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 at 16-Jul-13 5:16am
   
chk out this; http://slayeroffice.com/code/custom_alert/
Mannava Siva Aditya at 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.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

its not possible use jquery alert css or do by modalpopup which will display your msg and add close button for that one
  Permalink  
Comments
Mannava Siva Aditya at 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 at 16-Jul-13 4:20am
   
only javascript i have no idea please give me and if you found
Mannava Siva Aditya at 16-Jul-13 5:44am
   
Sure let u know if any solution comeout of it
dholakiya ankit at 16-Jul-13 5:53am
   
hmmm
dholakiya ankit at 18-Jul-13 7:54am
   
so you accepteed its not possbile right?
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

i think it should be not possible .... well but am trying for you.......
  Permalink  
Comments
Mannava Siva Aditya at 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)



Advertise | Privacy | Mobile
Web01 | 2.8.1411022.1 | Last Updated 12 Jul 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100