How to open icon link in new tab/window ?

Naga Surendra 1
Mega Expert

Hi All,

I have placed icon link in portal page, when the user clink on the icon link it should open in new tab/new window. please provide some guidance to achieve this requirement.

Thanks in advance.

Naga.  

1 ACCEPTED SOLUTION

siva_
Giga Guru

Hello Surendra, 

 

Please find the link below and let me know if that resolves your query by marking this response as correct 

 

https://hi.service-now.com/kb_view.do?sysparm_article=KB0683847

 

Thanks,

Siva

View solution in original post

6 REPLIES 6

Alikutty A
Tera Sage

Hello,

You can refer to the following post: https://community.servicenow.com/community?id=community_question&sys_id=84ea0f6ddb5cdbc01dcaf3231f9619cb&view_source=searchResult

Thanks!

johansec
Tera Guru

If you have the url then you can do this using an achor tag by adding target="_blank" like so

<a href="www.example.com/example.html" target="_blank">link text</a>

Else you can have an onclick function that takes you to the client script in which you would format the url and use this

window.open("https://www.w3schools.com");