I need to load different documents in a popup. I’m using this:
chrome.browserAction.setPopup({popup:"newpage.html"});
It works, except that the new page is not displayed until I click the extension button again. Opera has a similar API, but the popup content is actually replaced even if the popup is already opened.
So, how do I make Chrome popup load the new page without clicking the extension button?
You can use an iframe or div and populate it with the content you want. Example: