title: Issues with Content Menu and Opening Tabs - Chrome Extension
body: <p>im having issue with the below code not showing up with selection is detected on the webpage.</p>
  
  <p>Currently when i am selecting text the context menu is not showing up.</p>
  
  <h2>  Code</h2>
  
  <pre><code> function getword(info,tab) {
  
   if (info.menuItemId == "google") {
  console.log("Google" + info.selectionText + " was clicked.");
  chrome.tabs.create({ 
      url: "http://www.google.com/search?q=" + info.selectionText,
  })
   } else {
   console.log("Bing" + info.selectionText + " was clicked.");
    chrome.tabs.create({ 
      url: "http://www.bing.com/search?q=" +  info.selectionText,
   })
  }
  };
  
  chrome.contextMenus.onClicked.addListener(getword);
  
  chrome.runtime.onInstalled.addListener(function() {
    var contexts = ["page","selection","link","editable"];
    for (var i = 0; i &lt; contexts.length; i++) {
      var context = contexts[i];
      var title = "Google Search";
      var id = chrome.contextMenus.create({"title": title, "contexts":[context],
                                       "id": "google"});
      console.log("'" + context + "' item:" + id);
     }
     chrome.contextMenus.create({"title": "Bing Search", "id": "child1"});
  
   });
  </code></pre>