admin管理员组文章数量:1279244
In Chrome and Firefox, whenever I get a new email the inactive tab displays a very subtle notification. Basically, it just shines a little. In Chrome is shines from left to right as if someone is shining a flashlight on the tab.
It also does this when your are on the Twitter homepage, and a new tweet shows up.
I'm sure it is some Javascript function, but I can't seem to find it, because I don't think I am asking the question right.
Does anyone know how to do this?
In Chrome and Firefox, whenever I get a new email the inactive tab displays a very subtle notification. Basically, it just shines a little. In Chrome is shines from left to right as if someone is shining a flashlight on the tab.
It also does this when your are on the Twitter homepage, and a new tweet shows up.
I'm sure it is some Javascript function, but I can't seem to find it, because I don't think I am asking the question right.
Does anyone know how to do this?
Share Improve this question edited May 6, 2019 at 8:02 Brian Tompsett - 汤莱恩 5,89372 gold badges61 silver badges133 bronze badges asked Sep 28, 2011 at 17:43 ar3ar3 4,0733 gold badges23 silver badges22 bronze badges 3- 2 Maybe this - change the title - stackoverflow./questions/5644897/… – planetjones Commented Sep 28, 2011 at 17:52
- Yeah, that makes perfect sense...just change the title...and yes you are right, I have picked unclear words...for some reason, I couldn't seem to get my words right...thanks! – ar3 Commented Sep 28, 2011 at 18:04
- Possible duplicate of How to add a notification on the app tab of the Firefox? – Brian Tompsett - 汤莱恩 Commented May 6, 2019 at 8:02
1 Answer
Reset to default 11I posted an answer to a similar question (thanks @Jacob) a while back (about Firefox, not Chrome). The answer works in Chrome as well.
Do you mean that you're building a website and you want to let Firefox notify the user on an event when the tab is pinned?
I'm fairly certain Firefox does it when the website's
<title>
is changed. For instance on Twitter, when there's a new tweet, the title is changed from "Twitter / Home" to "(1) Twitter / Home". Firefox notices this and notifies the user.So really, any javascript function that changes
<title>
will make it work.I hope that helps
Just noticed the post was linked in a ment, so thanks @planetjones too!
本文标签:
版权声明:本文标题:javascript - Browser tab change notification like when you get a new gmail e-mail or a new tweet in Twitter - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741236633a2363146.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论