I have an intranet Communication site. My requirement is to display Page title as the Browser tab title without Site name with - prefix. Please suggest how we can update this for modern site.
I have an intranet Communication site. My requirement is to display Page title as the Browser tab title without Site name with - prefix. Please suggest how we can update this for modern site.
@SunitaJodha-6878 ,
This may be achieved by injecting JS modifies document.title to the SharePoint Online modern page. I'm testing on this and will back to you soon.
Hi @SunitaJodha-6878 ,
Sorry for the delay. You can inject below JS code to the modern page and then the browser tab title will get updated to the text you typed in the "Your Title Goes Here".
<script type="text/javascript">
document.title = "Your Title Goes Here";
</script>
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
You should have a spfx solution, the solution can help for inject JavaScript.
Then you can inject JS for your request.
5 people are following this question.