Change Browser tab title name for SharePoint Modern site

Sunita Jodha 21 Reputation points

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.

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

Accepted answer
  1. Allen Xu_MSFT 13,796 Reputation points

    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";  

    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. 杨建宇 11 Reputation points MVP

    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