title: URL of link from IFrame Javascript
body: <p>This question may seen before. But in my scenario I didn't get the success.
  I have local HTML file loading in Iframe with sample external Link. </p>
  
  <pre><code>        &lt;a href="http://www.boutell.com/"&gt;sample.com&lt;/a&gt;
  </code></pre>
  
  <p><strong>Code:</strong></p>
  
  <pre><code>    &lt;iframe id="iframe_Id" src="sample.html" 
  style="background-color:white; height:100%; width:100%;" onload="Load()"; &gt;&lt;/iframe&gt;
  
      function Load() {
  alert("loaded");
      var linkchange = document.getElementById("iframe_Id").contentWindow.location;
  alert(linkchange);
  }
  </code></pre>
  
  <p>While click on the external link I need the url value of particular anchor tag.</p>
  
  <p><strong>Edit:</strong> I know because of security policy we can't get URL when it is different domain.
  But I need the value from my local HTML page(the Link URL What I Clicked ).
  I didn't tried in this case</p>
  
  <p>Any help is needed regarding this.</p>