 <p>It's not possible if you don't have control over the parent site (in this case ebay.co.uk). Protocols, domains, and ports must match if you wan't target your scripts to parent site.</p> <p>If those frames were using the same domain, this would work:</p> <pre><code>&lt;button id="totop" onclick="window.parent.parent.scrollTo(0,0)"&gt; Scroll parent to top &lt;/button&gt; </code></pre> <p>If you had control over the parent site's (ebay.co.uk) web server, you could create a reverse proxy to fool the system. For example in Apache httpd you could create a reverse proxy like this:</p> <pre><code>ProxyPass /iframe http://vi.vipr.ebaydesc.com ProxyPassReverse /iframe http://vi.vipr.ebaydesc.com </code></pre> <p>And set the iframe's src to <a href="http://ebay.co.uk/iframe" rel="nofollow">http://ebay.co.uk/iframe</a></p> <pre><code>&lt;iframe src="http://ebay.co.uk/iframe"&gt;&lt;/iframe&gt; </code></pre> <p>This would allow you to target scripts to ebay.co.uk from the iframe.</p> <p>Anyway, in this case it's impossible.</p>