Posted By

madr on 12/20/10


Tagged

iframe javascript textmate


Versions (?)

Get Document element of an IFrame


 / Published in: Other
 

  1. function getIFrameDocumentElement(iframe) {
  2. return (iframe.contentWindow) ? iframe.contentWindow : (iframe.contentDocument.document) ? iframe.contentDocument.document : iframe.contentDocument;
  3. }

Report this snippet  

You need to login to post a comment.