Hey! I had the same issue trying to detect a click from iframe for specific div. Cross-origin stuff is a nightmare, but you can try using `postMessage` with a bit of extra setup.
If the iframe content is under your control, add a script inside it to send messages to the parent window when the div is clicked. Otherwise, you're kinda stuck due to security restrictions.
Check out MDN's docs on `postMessage`βitβs a lifesaver if you can make it work!
If the iframe content is under your control, add a script inside it to send messages to the parent window when the div is clicked. Otherwise, you're kinda stuck due to security restrictions.
Check out MDN's docs on `postMessage`βitβs a lifesaver if you can make it work!
