title: How do I implement Cross Domain URL Access from an Iframe using Javascript?
body: <p>I need to access the Parent Domain URL from my Iframe which is in another domain.</p>
  
  <p>For example, "example.com" is my website which has an Iframe from another parent domain, such as "google.com". Here I need to access the parent domain URL from my example.com. That is, I need to get the URL "google.com" in my "example.com" domain. Moreover, the Parent domain cannot be hard coded.</p>
  
  <p>What I tried was using the following code:</p>
  
  <pre><code>window.parent.location.href()
  </code></pre>
  
  <p>but this results in Access denied error. How do I implement this properly in order to achieve this?</p>