We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

How to make bold letter in the alert message in the client script

chandan31
Tera Contributor

alert('We’ve moved. The page you are trying to access is no longer in use.')

I want the bold the words (We’ve moved! ) using xlient script with the help of Alert message .

 

Can you help me 

 

 

Thanks,

Chandan

3 REPLIES 3

Not applicable

You can use UTF-8 bold chars - try this here https://yaytext.com/bold-italic/

 

Not applicable

Hi @chandan31 ,

This is not possible you can use g_form.addInfoMessage 

var message = '<span style="font-weight: bold;">We’ve moved. </span>  The page you are trying to access is no longer in use.';
   g_form.addInfoMessage(message);

 

Please mark my answer correct and helpful if this works for you

Thanks and Regards 

Sarthak

Not applicable

Hi @chandan31 ,

I hope my response helps you to resolve your query.

Please mark my answer correct and helpful if this works for you

Thanks and Regards 

Sarthak