title: How to call a phonegap funcation inside a iframe
body: <p>I want to call a function in my index page which is available at "phone gap file", I have called my index page inside phone gap file with in a frame.
  Current code working in web but not in application,Please any one suggest me </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>//code inside phonegap
  function clickImage(){
     alert("Phonegap app");
            
  } 
  
  //Code inside normal html
  
  
  function clickPicture(){
                
                window.parent.clickImage();
                  
              }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>index.html
  _______________
  &lt;body&gt;  
  &lt;button onclick="clickPicture();"&gt;Take Picture&lt;/button&gt;
    &lt;/body&gt;
  
  
  Phonegap.html
  _____________
  
  &lt;iframe  id ="Qusframe" src="index.html" width='100%' scrolling='no' frameBorder='0' &gt;
    &lt;p&gt; Your browser does not support iframes. &lt;/p&gt;
  &lt;/iframe&gt;</code></pre>
  </div>
  </div>
  </p>