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

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -