How to add a click event to elements in iframe (using jQuery)
There's a special jQuery function that does that: .contents(). See the example for how it's works.