最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How to add a notification on the app tab of the Firefox? - Stack Overflow

programmeradmin5浏览0评论

The FF4 delivers an app tab feature and it looks like both Gmail and Twitter have some notification code when a new mail or tweet e the app tab would look like a litter lighter. Does any know how to operate the app tab with the notification? I can see the code of a pinned application of IE9 with similar function. But I could not run into any document of FF.

The FF4 delivers an app tab feature and it looks like both Gmail and Twitter have some notification code when a new mail or tweet e the app tab would look like a litter lighter. Does any know how to operate the app tab with the notification? I can see the code of a pinned application of IE9 with similar function. But I could not run into any document of FF.

Share Improve this question edited Jan 28, 2013 at 13:08 adlawson 6,4311 gold badge36 silver badges46 bronze badges asked Apr 13, 2011 at 5:43 SinnynSinnyn 3092 silver badges12 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 18

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

发布评论

评论列表(0)

  1. 暂无评论