Binding Scroll Event To Iframe March 23, 2024 Post a Comment I'm using an iframe to load an external URL. Here's the structure - Solution 1: This is not going to work. It is because of Same Origin Policy. Because your page and the source of the iFrame are not on the same domain, the event will never fire on your main page. Read more about it here: https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policyMaybe you can make it work with one of these solutions: Ways to circumvent the same-origin policySo for external URLs(not on the same domain) this will always be problematic. Share Post a Comment for "Binding Scroll Event To Iframe"
Post a Comment for "Binding Scroll Event To Iframe"