[英]How can I update a tab's title when new content appears on minimized page?
When you have multiple tabs open some websites will update the tab title (ie with a "(1)" or "(2)") to indicate that content on the page has changed. 当您打开多个标签页时,某些网站将更新标签页标题(即,用“(1)”或“(2)”)来指示页面上的内容已更改。 I believe sites like Facebook and Buzzfeed do this (or am I just dreaming that they do that?)... How do they do it?
我相信Facebook和Buzzfeed之类的网站可以做到这一点(或者我只是在梦见他们这样做了?)...他们是如何做到的? Do they use JS?
他们使用JS吗? Is it possible to do something like that on a Wordpress site with a plugin that anyone is aware of?
是否可以使用任何人都知道的插件在Wordpress网站上执行类似的操作?
Just use: 只需使用:
document.title = "Whatever";
Reference: 参考:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.