title: going back to android app from window.open browser
body: <p>I have posted a form to on online url in my phonegap app. The online url opens in the app and it shows me the posted data. But now how do I go back to my app using some link etc. I am using the following code but in vain : </p>
  
  <p><strong>showdata.php</strong></p>
  
  <pre><code> &lt;?php
  
  
  
  var_dump($_POST);
  
  
  ?&gt;
  
  //this doesn't works
  &lt;a onclick="close(); return false;"&gt;Close me&lt;/a&gt;
  </code></pre>
  
  <p>in my app <strong>index.html</strong> : </p>
  
  <pre><code>   &lt;form action="http://mywebsite.com/showdata.php" id=dataform"&gt;
  
   &lt;input type="text" value="itemname" value="CPU"&gt;
  
  &lt;/form&gt;
  
  &lt;script&gt;    
  
      document.getElementById('dataform').submit();
  
  &lt;/script&gt;
  </code></pre>
  
  <p><strong>UPDATE :</strong> </p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
                                              var mapForm = document.getElementById("dataform");
  
                                              var map=cordova.InAppBrowser.open("","_blank","location=yes");
  
                                              if (map) 
                                              {
  
                                                  document.getElementById("dataform").submit();
  
                                              } 
                                              else 
                                              { 
  
                                                  alert('You must allow popups for this map to work.');
  
                                              }
  
  
  
  
                                           &lt;/script&gt;
  </code></pre>