admin管理员组文章数量:1401958
I've recently built a popup chrome extension(Popup Notes) It basically takes notes of whatever you type in popup.
Now I want to show saved notes whenever I hover my mouse over the extension icon. Right now it shows the static default title on mouse hover.
I know it's possible because this extension Checker Plus for Gmail shows the unread emails content on mouse hover and I'm not able to figure out how.
See Image:
So, How Can I show popup content on hovering mouse over icon in chrome extension?
Let me know if any further details are required.
I've recently built a popup chrome extension(Popup Notes) It basically takes notes of whatever you type in popup.
Now I want to show saved notes whenever I hover my mouse over the extension icon. Right now it shows the static default title on mouse hover.
I know it's possible because this extension Checker Plus for Gmail shows the unread emails content on mouse hover and I'm not able to figure out how.
See Image:
So, How Can I show popup content on hovering mouse over icon in chrome extension?
Let me know if any further details are required.
Share Improve this question edited Jun 20, 2020 at 9:12 CommunityBot 11 silver badge asked Nov 30, 2016 at 6:33 GorvGoylGorvGoyl 49.9k37 gold badges261 silver badges264 bronze badges1 Answer
Reset to default 8For manifest V2 or earlier: chrome.browserAction.setTitle
For Manifest V3: Use chrome.action.setTitle
The tooltip which is shown on hover for your browserAction
button is the title. You can change the title using chrome.browserAction.setTitle()
.
For example:
chrome.browserAction.setTitle({
title:'This is the tooltip text upon mouse hover.'
});
browserAction.setTitle()
can also take an optional tabId
which will change the title only for the specified tab.
Here is a GIF of a browserAction
button switching between two different titles:
本文标签: javascriptChrome Extensionshow dynamic text on mouse hover over extension iconStack Overflow
版权声明:本文标题:javascript - Chrome Extension - show dynamic text on mouse hover over extension icon - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744332781a2601044.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论