how to monitor clicks of child site (added by using iframe) from parent
<p>I have a website called A i want to display another website called myFrame through A using iframe  i want to count all the clicks in myFrame and want to display in my website A.myFrame site is in different domain.I did the following code but its not working </p>

<pre><code>&lt;html&gt;
&lt;body&gt;
Count: &lt;span id="clicks"&gt;0&lt;/span&gt;
&lt;iframe id="myframe" src="http://www.myFrame.com" class="restricted" height="400px;" width="400px;" scrolling="no" frameborder="0"&gt;     
&lt;/iframe&gt;
&lt;/body&gt;
&lt;/html&gt;

&lt;script language="javascript"&gt;
$(function() {
    var clicks = 0;
    $('#myframe').contents().find('a').bind('click', function(e) {
        e.preventDefault();
        clicks++;
        $('#clicks').html(clicks);
    });
});
&lt;/script&gt;
</code></pre>
