javascriptalert

How to get Text BOLD in Alert or Confirm box?


How to get BOLD Text and change color of text in Alert or Confirm box?

var conFrm =  confirm("Following List(s) already Sent...!\n<strong>List Name:  </strong>"+ss.replace(",","\n<b>Name: </b>")+"\n Do you want to send again...!");

Solution

  • You can't do it. But you can use custom Alert and Confirm boxes.

    You can read about some User Interface libraries here:

    http://speckyboy.com/2010/05/17/15-javascript-web-ui-libraries-frameworks-and-libraries/

    Most common libraries are: