title: how to get parent element from document object in iframe
body: <p>I have a problem with iframe.</p>
  
  <p>I want to get parent objet or parent node from content of iframe.</p>
  
  <p>my code :</p>
  
  <p>a.html:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;script src="http://code.jquery.com/jquery-1.6.4.min.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;div&gt;
  
      &lt;input type="button" value="click me" onClick="parent.getIframe(document);"/&gt;
  &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <hr>
  
  <p>index.php :</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;script src="http://code.jquery.com/jquery-1.6.4.min.js"&gt;&lt;/script&gt;
  &lt;script&gt;
  var getIframe = function(obj){
     // Iframe Element = $(obj).parent();
     //or some things likes this.
  }
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;div&gt;
     &lt;div id="myId"&gt;
          &lt;iframe src="a.html"&gt;&lt;/iframe&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Now I want when i click on "click me" button. I want to get HTMLIFRAME object elment by document object of iframe.</p>
  
  <p>I need your help.</p>