The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Need to run an onclick on a div with iframes and flash

I'm trying to track clicks on content that is within a div. Unfortunately that content will usually contain an iframe or flash or both.

I've tried doing one div as an overlay over the iframe (as suggested here), but that pretty much kills anything under the overlay...meaning users can't actually click through to what is in the iframe or flash.

I'd start with the addEventListener (attachEvent for ie) method. It allows you to manipulate events with more control. Also, you should learn how events trickle and bubble and cancel if you don't already .