Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I believe Google Chrome has hard coded the behavior inside their browser somewhere but I don't have time to find the section of code.</p> <p>Here's a work around that will grab the html from all the iframes current on the webpage using google chrome.</p> <h2>Setup:</h2> <ul> <li>Close all of your Google Chrome browsers, then launch Google Chrome with web security disabled. Otherwise running <code>DisplayIframeContent.js</code> will produce an error like this. </li> </ul> <blockquote>Unsafe JavaScript attempt to access frame with URL ...</blockquote> <p>Example:</p> <blockquote> cd LOCATION\OF\GOOGLE\CHROME <br/> chrome.exe --disable-web-security </blockquote> <p>When Google Chrome loads you should see an yellow warning stating,</p> <blockquote> You are using an unsupported command-line flag: --disable-web-security. Stabilty and security will suffer. </blockquote> <h2>Usage:</h2> <ul> <li>After launching Google Chrome open up your test website.</li> <li>Press <kbd>F12</kbd> to open the devtools.</li> <li>Copy and paste the content of <a href="http://code.jquery.com/jquery-1.8.3.min.js" rel="nofollow">jQuery</a> inside the console.</li> <li>Copy and paste <code>DisplayIframeContent.js</code> inside the console.</li> </ul> <p><b>DisplayIframeContent.js</b></p> <pre><code>// @author Larry Battle &lt;bateru.com/news&gt; 12.13.2012 // requires jQuery 1.8.3+ clear(); if( !$("iframe").length ){ console.log("No iframes were found"); }else{ $("iframe").each(function (i) { console.log( "### iframe[%s].src = (%s)", i, $(this).attr("src") ); console.log( $(this).contents().find("html").html() ) }); } "done"; </code></pre> <ul> <li>Copy and paste the output from the console.</li> </ul> <h2>Expected Output:</h2> <p>Example URL: <a href="http://jsfiddle.net/28yrA/" rel="nofollow">http://jsfiddle.net/28yrA/</a> Output:</p> <pre><code>### iframe[0].src = (javascript:false) ...HTML... ### iframe[1].src = (javascript:false) ...HTML... ### iframe[2].src = (javascript:false) ...HTML... ### iframe[3].src = (http://fiddle.jshell.net/28yrA/show/) ...HTML... "done" </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload