Open link in new tab, but focus should be on the current tab

sayan3
Tera Contributor

Hi All,
I want to open a link in new tab but focus or control should be in current form/tab.
how can I achieve this.
using below code , focus moved to new tab not stays in current tab.

top.window.open(url, '_blank'); in on change client script.
Please help me on this

Thanks in Advance

2 REPLIES 2

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @sayan3 

 

https://www.servicenow.com/community/now-platform-forum/how-to-set-focus-on-tab/m-p/1112518

https://www.servicenow.com/community/now-platform-forum/opening-urls-in-a-new-tab/m-p/1088066

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Thanks Atul.
But this is not helpful.