开发者

Closing a chrome-extension notification using JavaScript

I am creating an google-chrome-extension which has html notifications. There will be a "close" button on it. Is there anyw开发者_Go百科ay to make the notification close on the button click? I have already tried window.close(), but it does not seem to work in Chrome.


window.close(); should work for you, check out the Chrome/Silver Bird code as there is a close link on these that works and might point you towards what you're doing differently...

similiar questions which might help you at
Closing popup window created by Google Chrome extension
Chrome extension development: auto close the notification box

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜