简体   繁体   中英

How do you send a mousemove event from an iframe back to the parent using jquery?

Using jquery, how would I send an iframe's window mousemove events back to its parent, and the parent will see the event with the mouse coordinates mapped to it's own window? Both the iframe and parent are on the same domain.

I solved this problem by overlaying the iframe with an absolutely positioned transparent div. This way, the parent always gets the mousemove events.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM