title: Event Parent.function() in Iframe cross domain
body: <p>I have the following pages:</p>
  
  <p>www.aaa.com/a.html</p>
  
  <pre><code> &lt;input onClick=parent.miFunction() /&gt;
  </code></pre>
  
  <p>www.bbb.com/b.html</p>
  
  <pre><code>&lt;script&gt;
  miFunction(){
   alert("sss")
  }
  &lt;/script&gt;
  &lt;iframe src="www.aaa.com/a.html"&gt; &lt;/iframe&gt;
  </code></pre>
  
  <p>The problem happend when somebody presses the button in www.aaa.com/a.html. The console logs the following error: </p>
  
  <p>live:1 Uncaught DOMException: Blocked a frame with origin "www.aaa.com" from accessing a cross-origin frame.
      at HTMLButtonElement.onclick (www.aaa.com/a.html:1:8)</p>
  
  <p>Thank you!</p>