Forum Moderators: open
You can do this ONLY if the page in the iFrame comes from your site. If it's an external site, you will get an access denied error, this is an internal security feature to prevent "sniffing" other frames.
There are many ways to capture a click. Attach the onClick event to the required object
href="whatever" onClick="fun(); return false"
body onClick="fun(); return false"