how to add onclick event to anchor tag that is sitting within iframe?
<p>before clicking this anchor tag I would like to do something else:</p>

<pre><code>anchorref.onlick= function()
{
//do something
//progress to goal.com
return (true);

}
</code></pre>

<p>my html looks (something) like this, the point is having an anchor tag witin a button that you would like to do something else first before heading of to the goal.com. The Iframe is pointing to another domain. Or should I maybe create an event handler on the Iframe tag?:</p>

<pre><code>&lt;iframe class="myclass" frameborder="0" scrolling="no" allowtransparency="true" src="http://www.goal.com"
            style="width: 55px; height: 20px;"&gt;
            &lt;html lang="en"&gt;
            &lt;head&gt;
                &lt;body class="ncount"&gt;
                    &lt;span id="tweet-button" class="tb-container"&gt;&lt;span class="tb"&gt;&lt;a id="btn" tabindex="1"
                        href="http://www.goal.com"&lt;/span&gt;
                        &lt;img src="someimagesrc" alt="" style="height: 1px; width: 1px;"&gt;

                &lt;/body&gt;
            &lt;/html&gt;
        &lt;/iframe&gt;
</code></pre>
