How to dynamically change a web page's title?

前端 未结 19 1451
遇见更好的自我
遇见更好的自我 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:25

    Modern crawlers are able to parse dynamically-generated content in the DOM, so using document.title = ... is perfectly fine.

提交回复
热议问题