title: Chrome Page Action click not working
body: <p>this is my manifest.json file</p>
  
  <pre><code>{
    "name": "My First Extension",
    "version": "1.0",
    "description": "The first extension that I made.",
    "background_page": "background.html",
    "page_action": 
   {
       "default_icon": "icon.png"
   },
    "permissions" : [
      "tabs"
    ]
  }
  </code></pre>
  
  <p>This is the background.html</p>
  
  <pre><code>&lt;html&gt;
    &lt;head&gt;
      &lt;script&gt;
        // Called when the url of a tab changes.
        function checkForValidUrl(tabId, changeInfo, tab) {
          // If the letter 'page' is found in the tab's URL...
          if (tab.url.indexOf('google') &gt; -1) {
            // ... show the page action.
            chrome.pageAction.show(tabId);
          }
        };
  
        // Listen for any changes to the URL of any tab.
        chrome.tabs.onUpdated.addListener(checkForValidUrl);
  
     chrome.pageAction.onClicked.addListener(function(tab)
      {
             tab.url = 'www.bing.com';
                               console.log('I am clicked');
      }
              );
  
  
      &lt;/script&gt;
    &lt;/head&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>when i click on the page action icon , i want to redirect the page to Bing.com, but this click event is not working for me.</p>
  
  <p>Thanks</p>