Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var myIframe = document.getElementById('myIframeId');
- // could retrieve window or document depending on the browser
- // (if FBJS allows it!?)
- var myIframeWin = myIframe.contentWindow || myIframe.contentDocument;
- if( !myIframeWin.document ) { //we've found the document
- myIframeWin = myIframeWin.getParentNode(); //FBJS version of parentNode
- }
Add Comment
Please, Sign In to add comment