How to dynamically change a web page's title?

前端 未结 19 1438
遇见更好的自我
遇见更好的自我 2020-11-22 08:05

I have a webpage that implements a set of tabs each showing different content. The tab clicks do not refresh the page but hide/unhide contents at the client side.

No

19条回答
  •  伪装坚强ぢ
    2020-11-22 08:33

    But in order to get the SEO befits

    You need to do a page reload when the page changes so that the search engine's see the different titles etc.

    So make sure the page reload works first then add document.title changes

提交回复
热议问题