Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

bold, header effects in alert()?

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??");

}

like image 865
Abhilash Muthuraj Avatar asked Dec 03 '22 12:12

Abhilash Muthuraj


1 Answers

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

like image 185
Андрей Костенко Avatar answered Dec 20 '22 16:12

Андрей Костенко