Welcome guest, is this your first visit? Create Account now to join.
Results 1 to 2 of 2

This is a discussion on really simple question! within the Chrome Plugins section, part of the Google Chrome category: I was doing a really simple extension--Change the icon when clicked. But then everytime I clicked the icon, nothing happened ...


  1. #1
    wusiyang is offline Junior Member
    Join Date
    Jun 2010
    Posts
    2

    Default really simple question!

    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>

  2. #2
    PAEz's Avatar
    PAEz is offline Moderator
    Join Date
    Aug 2009
    Location
    Australia
    Posts
    656

    Default

    You've got some simple errors, please compare with below....
    chrome.browserAction.onClicked.addListener(function(Tab){
    chrome.browserAction.setIcon({path:"icon1.png"});
    });

Similar Threads

  1. Creating a Simple .crx theme
    By Stamga in forum Themes Development
    Replies: 11
    Last Post: 08-16-2010, 02:28 AM
  2. Can someone help me with a simple request?
    By jennan in forum Chrome Themes
    Replies: 4
    Last Post: 05-16-2010, 04:31 AM
  3. Simple Black theme?
    By mp3deviant721 in forum Chrome Themes
    Replies: 4
    Last Post: 02-18-2010, 02:02 AM
  4. [NEW EXT] Simple World Clock
    By yusuke in forum Chrome Plugins
    Replies: 4
    Last Post: 12-07-2009, 05:33 PM
  5. Simple toolbar creation
    By adonato in forum Plugins Development
    Replies: 26
    Last Post: 08-14-2009, 10:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •