Skip to content Skip to sidebar Skip to footer

Disable All Scrolling In An Iframe, But Allow Clicking

I'm trying to disable all forms of scrolling in my iframe, but still allow the user to click a button that appears in the iframe. I've successfully disabled all forms of scrolling

Solution 1:

Delete style="pointer-events: none;" and just make the height of the iframe the height of the document inside of it. If there are objects inside of the iframe that scroll, and the iframe is coming from a domain that is not your own, I'm sorry to say that you are out of luck. You cannot effect the contents of an iframe that is not hosted on your own domain.


Post a Comment for "Disable All Scrolling In An Iframe, But Allow Clicking"