title: iframe location in javascript
body: <p>In this example, alert is blank;
  I want to read the location of iFrame, I am using object.src for this but it work only if I set its src attribute. But I set iFrame's location using window.open method and in this case it is not working. What I do ?</p>
  
  <pre><code>&lt;body&gt;    
  &lt;iframe id="location" name="address" style="width:700px; height:700px;"&gt;  
  &lt;/iframe&gt;    
  &lt;script type="text/javascript" language="javascript"&gt;  
      window.open("http://www.google.com","address");  
      function clickMe()  
      {  
          var src = document.getElementBy Id("location").src;  
          alert(src);  
      }  
  &lt;/script&gt;  
  &lt;input type="button" onclick="clickMe()" value="click Me"/&gt;  
  &lt;/body&gt;
  </code></pre>