chrome.browserAction.onClicked.addListener(function(tab) { chrome.tabs.executeScript({ code: 'document.getElementById(textarea_simulator).style.backgroundColor="red"' });});