Get mouse coordinate over iframe

0
0

Hi,

I’m using an iframe and I need to understand if the user is moving the mouse. Is there a way to have the mouse coordinates even if it’s over an iframe?

I need to know if a user is active or afk

best

Cristian

  • You must to post comments
0
0

Hi Julie,

mh… I understand. As a workaround, I created a transparent panel that every 5 minutes pops up on top of everything. As soon as it receives a mouse event such as mousemove it becomes invisible and resets the counter

  • You must to post comments
0
0

Unfortunately, this is difficult to do due to CORS restrictions. The only way to do this is to have access to the iFrame code and implement a way to send and receive messages using the postMessage() APIs.

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.