How can I simulate an anchor click within iframe via Javascript
<p>I have an iframe window that displays a report. To access this iframe, I have an expand/collapse button on the parent window.</p>

<p>Within the iframe report window, I have a #PAGETOP anchor at the bottom of the report, i,e:</p>

<pre><code>&lt;tr&gt;&lt;td style="padding-left:45px" class="bottom" colspan="99"&gt;&lt;div id="ptAnchor"&gt;&lt;a href="#PAGETOP"&gt;&lt;img src="first.png" border="1" alt="Top of Page" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
</code></pre>

<p>How can I programatically emulate an onclick of this #PAGETOP anchor, when the user presses the "expand" button from the parent window?</p>

<p>Thanks,
Tony.</p>
