how can i detect click in any frame on the page
<p>I have this function that hides a div when something in the document is clicked. but it only works in its frame. it doesnt detect document clicks in other frames  on the webpage. i've tired <code>$(parent).click(</code> but it doesnt work. is there any way?</p>

<pre><code> $(function (){

        $(document).click(

                function (e){

                   ...

                    }  
            )

    })
</code></pre>
