Browser tab custom title not staying
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2017 06:50 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2017 06:56 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2017 12:12 PM
Gaurav,
Unfortunately, that does the same thing. Changes the title then it changes back when I click off of that tab.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2017 11:25 PM
Hello Toby,
There must be some UI script running globally which is hampering this effect.
Please try to look into them.
Thanks
Gaurav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-01-2017 05:24 AM
I looked in UI scripts and the only one with "global = true" was the custom one I added.