How to disable scrolling temporarily in JavaScript?

Posted by Prem Tiwari | Updated on

Want to disable scrolling temporarily in JavaScript? The scroll event cannot be canceled. But you can do it by canceling these interaction events. Mouse & Touch scroll and Buttons associated with scrolling.

Use the following javascript example:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers