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

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -