Browser tab custom title not staying

tspitalnick2
Kilo Contributor

Hi all,

I was trying to set the browser tab title to something other than "ServiceNow" when I have a custom UI page loaded. I followed Re: Dynamic Browser Window Title - Take 2 as well as a few other community posts to try to do this.

Results were that the tab would change the title to my custom one, but once I clicked any other tab, it went back to the default "ServiceNow" title. Any ideas how to override the override?

Thank you.

8 REPLIES 8

Gaurav Bajaj
Mega Sage

Hello Toby,



You can try adding below code in client script of your UI page


where you need to replace custom title with the your required title.




document.title = "Custom title";



Let me know if that helps.



Gaurav,



Unfortunately, that does the same thing. Changes the title then it changes back when I click off of that tab.


Gaurav Bajaj
Mega Sage

Hello Toby,



There must be some UI script running globally which is hampering this effect.


Please try to look into them.



Thanks


Gaurav


I looked in UI scripts and the only one with "global = true" was the custom one I added.