Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    May 2012
    Posts
    16
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Disabling scroll functionality

    Hello
    I have large document, (it has a scroll). I want make this: after click on document, disable scroll functionality. please tell how to make this?

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,010
    Thanks
    203
    Thanked 2,538 Times in 2,516 Posts
    Quote Originally Posted by dadli88 View Post
    Hello
    I have large document, (it has a scroll). I want make this: after click on document, disable scroll functionality. please tell how to make this?
    Code:
    body{overflow: hidden;}
    But why do you want to do this? It is never a good idea to interfere with the user's browser.

    Six out of the Queen's winners have gone on to win Wimbleodn, that's 6 over 33 divided by 100 if you want the percentage, probably about 60 per cent I'd say. - Presenter, BBC Radio 1.

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •