Note that there are some explanatory texts on larger screens.

plurals
  1. POGathering location of an IFRAME
    primarykey
    data
    text
    <p><em>I am building a script/application (on client side and on proxy site too) that gathers information about elements from various web-sites.</em></p> <p>One last thing that makes me troubles is gathering location of an IFRAME. Let me explain this in more details:</p> <ul> <li>Invariant: Location of IFRAME is not changed via user interaction</li> <li>Some web-pages uses SRC attribute to define location of new IFRAME - either defined via scripting or manually typed in the source - <em>this is ok (no problem)</em></li> <li>Other web-pages uses various techniques how to populate IFRAME dynamically and they do not use SRC attribute of IFRAME - <em>this is ok if location of such IFRAME is inside the same domain, otherwise it is unsafe access to other domain</em></li> </ul> <p>I will include one example of HTML code:</p> <pre><code>&lt;html&gt; &lt;body&gt; &lt;a href="http://www.google.com" target="test_iframe"&gt;Click here to open an iframe.&lt;/a&gt; &lt;br&gt; &lt;iframe id="test_iframe" name="test_iframe"&gt;&lt;/iframe&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>So if I try by JavaScript this below I will get an empty string.</p> <pre><code>document.getElementById("test_iframe").src </code></pre> <p>And if I try to use this below I will get a security error.</p> <pre><code>document.getElementById("test_iframe").conentDocument.location.href </code></pre> <p>So my question can be reduced to:</p> <ul> <li><strong>Are there any technique to gather <em>location</em> of such IFRAME which content is outside parent domain and that IFRAME is without <em>SRC</em> attribute?</strong></li> </ul> <p>Thank you very much for your answers :-)</p>
    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. 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