Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
46
rated 0 times [  50] [ 4]  / answers: 1 / hits: 17200  / 11 Years ago, thu, august 29, 2013, 12:00:00

I wanna make bold content to be displayed in javascript alert box. as far I know I gave <b> to make bold. but, it doesn't works. Is there anyway to make bold?



Code;



function f1()
{
alert(<b>Hello</b>)
}

More From » alert

 Answers
11

You can use Jquery UI Dialog for that.



Example:



 $(function () {
$(#dialog-message).dialog({
modal: true,
buttons: {
Ok: function () {
$(this).dialog(close);
}
}
});
});


Or a jquery plugin



Basically a pure alert box is a system object, and you can't apply CSS. However an alert box supports all Unicode characters and things like n and t


[#76037] Wednesday, August 28, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
daquanmilesw

Total Points: 57
Total Questions: 102
Total Answers: 110

Location: Wallis and Futuna
Member since Sat, Aug 6, 2022
2 Years ago
daquanmilesw questions
;