title: Find the window of an element inside an iframe
body: <p>Is there a cross browser method of returning the window object of an element whether it be in an iframe.</p>
  
  <p>This does the job for me but I don't know how well supported it is or if jQuery has a solution.</p>
  
  <pre><code>var edoc = elem.ownerDocument.defaultView || elem.document.parentWindow;
  </code></pre>