Franz Payer
Franz Payer

Reputation: 4137

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 anyway to make the notification close on the button click? I have already tried window.close(), but it does not seem to work in Chrome.

Upvotes: 0

Views: 1024

Answers (1)

MadMurf
MadMurf

Reputation: 2323

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

Upvotes: 2

Related Questions