Answers for "javascript disable scrolling"

4

javascript disable scrolling on body

document.body.style.overflow = 'hidden';
Posted by: Guest on August-17-2020
2

javascript disable scrolling

function disableScrolling(){
    var x=window.scrollX;
    var y=window.scrollY;
    window.onscroll=function(){window.scrollTo(x, y);};
}

function enableScrolling(){
    window.onscroll=function(){};
}
Posted by: Guest on August-05-2019
0

how to keep scrolling with javascript

function scrolldown() {
  setTimeout(
    function()
    {
      window.scrollTo(0,document.body.scrollHeight);
      scrolldown();
    }, 2000
  )
}

scrolldown()
Posted by: Guest on August-27-2020

Code answers related to "javascript disable scrolling"

Code answers related to "Javascript"

Browse Popular Code Answers by Language