title: how to execute javascript in chrome browser extension
body: <p>i am trying to make an extension for google chrome in which i need to execute a simple javascript to open url in chrome extension i know that anchor tag can do that but i wanted some other functionality to be added in js. </p>
  
  <p>simple pop.html file from which javascript will be executed is :</p>
  
  <pre><code>&lt;html&gt;
  &lt;body&gt;
  &lt;form&gt;
  &lt;div id="search_panel"&gt;
  
  &lt;input type="text" id="box" name="txt" required placeholder="Search anything"/&gt; &lt;input type="submit" id="stu_submit" onclick="hey();" name="stu_post" value="Search"/&gt;
  &lt;div&gt; &lt;a href="http//s.com" target="_blank" id="stu_links" &gt;s.com&lt;/a&gt; &lt;a href="#" id="stu_links"&gt;news&lt;/a&gt; &lt;a href="#" id="stu_links"&gt;hey&lt;/a&gt; &lt;a href="#" id="stu_links"&gt;Sign In&lt;/a&gt; &lt;/div&gt;
  &lt;/div&gt;
  &lt;script&gt;
      function hey()
      {
      window.open('http://www.google.com');
      }
    &lt;/script&gt;
  &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>and the manifest file is :</p>
  
  <pre><code>{
    "name": "Chrome Extension for s.com",
    "version": "1.0",
    "manifest_version": 2,
    "description": "Google Chrome Extension for s.com.",
    "browser_action": 
    {
      "default_icon": "img/icon.png",
      "default_menu": "FirstMenu",
      "default_popup": "popup.html"
    },
  
     "chrome_url_overrides" : {
      "newtab": "s.html"
    },
  
    "permissions": [
      "http://api.flickr.com/"
    ]
  }
  </code></pre>
  
  <p>please help and tell how to execute js in popup.html</p>