How to disable scrolling for an iframe in chrome?

Member

by lizzie , in category: Javascript , 3 months ago

How to disable scrolling for an iframe in chrome?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by dalton_moen , 2 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.