title: Disable parent button from child iframe javascript file
body: <p>Is there a way to disable button from inner iframe javascript file to parent html file. for example:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;body&gt;
     &lt;iframe src="frame1.html" name="frame1" height="100%"&gt;&lt;/iframe&gt;
     &lt;div id="test1"&gt;&lt;/div&gt;
     &lt;button type="button" id="myBtn"&gt;Click Me!&lt;/button&gt;
  &lt;/body&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Basically, frame1.html has its own frame1.js file and from this file i would like to disable the button "myBtn". by the way, both parent and child urls are on the same domain.</p>