How to disable scrolling for an iframe in chrome?

Member

by lizzie , in category: Javascript , 6 months ago

How to disable scrolling for an iframe in chrome?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by dalton_moen , 6 months ago

@lizzie 

To disable scrolling for an iframe in Chrome, you can add the scrolling attribute to the <iframe> tag and set it to no. Here's an example:

1
<iframe src="https://www.example.com" scrolling="no"></iframe>


By adding this attribute and setting it to no, the iframe will not have scrolling enabled in Chrome.

Related Threads:

How to disable vertical scrolling on touch screens in iframe?
How to autoplay iframe with video in chrome?
How to prevent iframe caching in chrome?
How to prevent "back to top" scrolling in an iframe?
How to disable all clicks in iframe?
How to disable iframe from javascript?