how can determine if popup window opened? e.g. clicked on extension (chrome.browseraction), window open , want show loading sign inside popup every time that?
you can register onclicked event listener browseraction.
chrome.browseraction.onclicked.addlistener(function () { // want });
you can listen window.onload event in popup page.
window.onload = function() { // want };
Comments
Post a Comment