Reputation: 1287
jQuery uses event bubbling, but is there a way to do event capturing i.e. in the descending order as explained here.
The specific case is the following where host A and host B are on the same domain like :
www.example.com
and xxx.example.com
.
Of course the Same Origin Policy makes it that it is not possible to trigger on event in the iframe. However I just would like to know if user has clicked on $('#hostA')
and pass on the event to the <iframe>
.
<div id="hostA">
<iframe id="hostB">
</div>
Upvotes: 4
Views: 6247
Reputation:
No, jQuery does not support this and it never can -- IE has no way to implement a capturing event.
Upvotes: 5