Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

How to increase the size of a link

Alon Grod
Tera Expert

Hi,

 

im using client script that will pop up error message with clickable link. How can i increase the font of the clickable link?

 

see attachment 

3 REPLIES 3

J Siva
Kilo Patron

Hi @Alon Grod 
You can acheive that using <font> tag. PFB sample.

Client script:

   var msg = '<p>Please click the following link: <a href="https://www.google.com"><font size="5">Google</font></a></p>';

    g_form.addErrorMessage(msg);

Output:

JSiva_1-1745308010342.png

Regards,
Siva

 

Ankur Bawiskar
Tera Patron

@Alon Grod 

you can use font tag and give size there as per script shared by @J Siva 

Share your complete script here as well.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 10x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

swapnali ombale
Kilo Sage

Hi @Alon Grod 

 

Modify the a tag directly like below 

 

<a href="#" style="font-size: 20px;">This is a link</a>

 

Kindly mark my answer as helpful and accept solution if it helped you in anyway.