views:

144

answers:

4

in javascript, how to make alert bold n use h1 to h5 headers? Is this possible or simply plain alert is option?

how to include bold and h1 to this alert?



function onlooad()
{
    alert("wssup??");

}

+3  A: 

As far as I know, this is impossible.

Evgeny Shadchnev
+10  A: 

You can not use HTML in alert(). For that you need to use window.open() or some custom code like this:
http://docs.jquery.com/UI/Dialog

Андрей Костенко
Hi is jquery on top of javascript, i know little javascript, is it worth learning jquery?? Is it easy to use and faster in execution?
abhilashm86
@abhilash M You might want to start here http://stackoverflow.com/questions/2628672/what-every-javascript-programmer-should-know
David
+2  A: 

You can use custom elements that act like alert boxes. Check this one out

jQuery Impromptu

rahul
+1  A: 

Javascript alert is limited in terms of formatting because it does not recognise HTML markup. If this is important, consider an in-page alternative. A quick web search turned up the following:

http://www.jondavis.net/codeprojects/jqalert/

spender