JavaScript - Cancel Scroll event -
I want to disable scrolling in one of my pages. I do not want to write
Scroll event in scroll (0,0)
or scrollTo (0,0)
which is a 'Bouncing' nature will cancel the event
event.preventDefault ()
I have nothing like that?
document.body.style.overflow = 'hidden';
Comments
Post a Comment