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

python - Writing Greek in matplotlib labels, titles -

c# - LINQ to Entities does not recognize the method 'Int32 IndexOf(System.String, System.StringComparison)' method -

Pygame memory leak with transform.flip -