Break parent, top variables in iframe to prevent frame busting, but still access functions of parent
<p>I am loading a website's content in an iframe through a proxy on my server. If I add this javascript at the top of the file,</p>

<pre><code>var top = "";
var parent = "";
</code></pre>

<p>I can successfully prevent the website from frame busting. How can I do this and still access functions in the parent window, like this:</p>

<pre><code>parent.my_function('this is called from inside the iframe');
</code></pre>
