How to remove scrollbar from iframe using JavaScript

In this article, you will learn how to remove scrollbar from iframe using javascript with the example.

Hide scrollbar from iframe using js Try it Yourself »
  1. Create a button, whenever the button is clicked, the myFunc() function is called.
  2. Inside the function, select the iframe using querySelector() method and add scrolling attribute.