I was doing a really simple extension--Change the icon when clicked. But then everytime I clicked the icon, nothing happened and the icon stayed the same. Anyone can help me figure it out? here is the background.html script:
<script>
chome.browserAction.onClicked.addListener(function(Tab tab){
chrome.browserAction.setIcon({path:"icon1.png"});
});
</script>


LinkBack URL
About LinkBacks



Reply With Quote