How to detect a click from iframe for specific div? Alternatively, for a bit more context: Best way t

16 Replies, 1727 Views

Yo, cross-origin iframes are a pain, but here’s a thought: can you use a proxy to serve the iframe content from your domain? That way, you bypass the cross-origin issue and can detect a click from iframe for specific div normally.

Otherwise, `postMessage` is the only real option, but it requires cooperation from the iframe’s source.

Good luck!

Messages In This Thread



Users browsing this thread: 2 Guest(s)