title: How can i get the value like distance from a iframe map from a new window opened using window.open?
body: <p>I have a new window containing a iframe google map which opens using window.open() method.I want the value of distance(km) from the iframe map?</p>
  
  <p>I have tried with popUpWindow.document.getElementById('map').value. But it consoles that it is undefined.</p>
  
  <p>HTML.   </p>
  
  <pre><code>&lt;iframe id="map" src=""&gt; &lt;/iframe&gt;
  </code></pre>
  
  <p>The src for the iframe is a google maps api with origin and destination.</p>
  
  <p>JS.</p>
  
  <pre><code>var map = popUpWindow.document.getElementById('map').value;
  console.log('map',map);
  </code></pre>
  
  <p>I want the value from the iframe google map. </p>
  
  <p>Note: The iframe is in a new window , a child window.</p>