I have a page with many iframe
and I should open a drop-down menu
on top of all them by append the menu at the top body.
Problem is that how can I catch
the next click of the mouse to close the menu? Because I don't know in which frame it will be I can't add an click listener
to the right iframe
.
Is there any way to catch the click event
instead of the click event on the target element?
jsFiddle example - if I click inside the iframe the menu will not be removed!