So I’m working on creating an extension that’ll need to work within a popup window that is triggered by my website… Standard Javascript…
function openwin(){
window.open('http://stackoverflow.com','myname','height=100,width=100');
}
Now I need my extension to load within that window. Let’s say the extension’s purpose is to just alert a message, when I load that window the background.js should fire and do that, correct?
chrome.windows.create(object createData, function callback)Creates (opens) a new browser with any optional sizing, position or default URL provided.
From: http://code.google.com/chrome/extensions/windows.html#method-create
Try this example: