Change Browser tab title name for SharePoint Modern site

Sunita Jodha 21 Reputation points
2021-09-07T13:18:29.103+00:00

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.

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
7,018 questions
{count} votes

Accepted answer
  1. Allen Xu_MSFT 13,571 Reputation points
    2021-09-09T07:34:48.47+00:00

    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.


1 additional answer

Sort by: Most helpful
  1. Linyu 11 Reputation points MVP
    2021-09-09T07:43:51.593+00:00

    You should have a spfx solution, the solution can help for inject JavaScript.
    Then you can inject JS for your request.

    0 comments No comments