Window object visible inside chrome extensions:
chrome.tabs.get(YOUR_TAB_ID_HERE, function(tab){ chrome.windows.get(tab.windowId, function(win){ console.log(win);
But if you need a javascript runtime inside a specific tab, you need to use Content Scripts, which are better explained here:
http://code.google.com/chrome/extensions/content_scripts.html
source share