Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Aug 31st, 2013  |  syntax: None  |  size: 0.27 KB  |  views: 27  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. var iframe = document.getElementById('iframeId');
  2. var innerDoc = (iframe.contentDocument) ? iframe.contentDocument : iframe.contentWindow.document;
  3.        
  4. var iframe = document.getElementById('iframeId');
  5. var innerDoc = iframe.contentDocument || iframe.contentWindow.document;
clone this paste RAW Paste Data