Reputation: 2815
I'd like call a function every time a user drags their mouse over an iframe (which points to a different domain). Is this possible?
Upvotes: 5
Views: 12480
Reputation: 89596
I'm guessing you already tried setting a mouseover
event on the actual iframe
and it didn't work. If so, you can try wrapping the iframe
inside a div
and set the mouseover
event on that div
. This has to work. In the worst case scenario make the div
a little big bigger (1-2px padding) than your iframe.
Upvotes: 3