title: Accessing an element outside of iframe
body: <p>I have a file: <strong>1.html</strong> and an <strong>iframe</strong> inside it.<br>
  I want to access an element (lets say myelement) which exists in <strong>1.html</strong> (outside of iframe) from the <strong>iframe</strong>.<br>
  How can I do that?<br>
  I tried:  </p>
  
  <pre><code>top.getElementById("myelement")
  top.document.getElementById("myelement")  
  parent.getElementById("myelement")
  parent.document.getElementById("myelement")
  </code></pre>
  
  <p>but it didn't work!!</p>