I'd like to be able to display a styled alert (for example, add image) which the alert dialog is called from the background script of a Chrome Extension (I want to write the code of alert in background.js
). Is there any idea how I can display the alert? Is there an APIs Chrome Extension for that?
I have a simple alert without styled :
chrome.tabs.onUpdated.addListener(function (tabId, changeInfo, tab){
if(changeInfo.status == 'complete' && tab.status == 'complete'){
alert("This is a simple alert!");
} });