javascript - How to disable scroll up? -


I want to disable the scroll in my HTML document. how can I do this? I do not want to use this type:

  $ (window) .load (function () {var _top = $ (window) .scrollTop (); var _direction; var _stopScroll = true ; $ (Window) .scroll (function) {var _cur_top = $ (window) .scrollTop (); if (_top & lt; _cur_top) {_direction = 'down';} and {$ ("body") ScrollTop (90), // scroll} _top = _cur_top; console.log (_direction);});});  

Thanks!


Comments

Popular posts from this blog

c++ - Cmake produces file extensions in static library archives -

c# - Roxy file manager in MVC doesn't accept session path -

c# - XML - Serialize class - Some questions -