close

How to enable scrolling on a website that disabled scrolling?

Hello Guys, How are you all? Hope You all Are Fine. Today we are going to learn How to enable scrolling on a website that disabled scrolling? in javascript. So Here I am Explain to you all the possible methods here.

Without wasting your time, Let’s start This Article.

How to enable scrolling on a website that disabled scrolling ?

  1. How to enable scrolling on a website that disabled scrolling ?

    to enable scrolling on a website that disabled scrolling One last thing is to check for Event Listeners > “scroll” and test deleting them.
    Even if you delete the Javascript that created them, the listeners will stick around and prevent scrolling.

  2. How to enable scrolling on a website that disabled scrolling ?

    to enable scrolling on a website that disabled scrolling One last thing is to check for Event Listeners > “scroll” and test deleting them.
    Even if you delete the Javascript that created them, the listeners will stick around and prevent scrolling.

Method 1

In a browser like Chrome etc.:

  1. Inspect the code (for e.g. in Chrome press ctrl + shift + c);
  2. Set overflow: visible on body element (for e.g., <body style="overflow: visible">)
  3. Find/Remove any JavaScripts that may routinely be checking for removal of the overflow property:
    • To find such JavaScript code, you could for example, go through the code, or click on different JavaScript code in the code debugger console and hit backspace on your keyboard to remove it.
    • If you’re having trouble finding it, you can simply try removing a couple of JavaScripts (you can of course simply press ctrl + z to undo whatever code you delete, or hit refresh to start over).

Good luck!

Method 2

One last thing is to check for Event Listeners > “scroll” and test deleting them.

Even if you delete the Javascript that created them, the listeners will stick around and prevent scrolling.

Summery

It’s all About this article. Hope all method helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which method worked for you? Thank You.

Leave a Comment