title: Call JavaScript method in Chrome extension from web page button click
body: <p>I have a add <a href="http://mrcoles.com/full-page-screen-capture-chrome-extension/" rel="nofollow noreferrer">this</a> chrome extension in to Chrome. I took the extension code from <a href="https://github.com/mrcoles/full-page-screen-capture-chrome-extension" rel="nofollow noreferrer">here</a>. Now I want to trigger this extension from my web page &quot;tack shot&quot; button click something like following:</p>
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;script&gt;
  function takeShot(){
      //code to trigger chrome extension script.
  }
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;button onClick='takeShot()'&gt;take shot&lt;/button&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  <p>Can anybody help me to resolve this?</p>