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
Post a Comment