javascript - How to hide scroll bar on page load? -


i have developed single page website 4 sections. here client wants:

  1. the scrollbar should hidden on page load
  2. if user scrolls past second section, scrollbar should appear.

my client gave me website example: http://diagnosite.com/

how can this?

you can set overflow:hidden; body , have javascript detect scroll down viewer mouse or pagedown button keybiard. remove overflow attribute body.


Comments

Popular posts from this blog

node.js - How to mock a third-party api calls in the backend -

node.js - Why do I get "SOCKS connection failed. Connection not allowed by ruleset" for some .onion sites? -

matlab - 0-by-1 sym - What do I need to change in order to get proper symbolic results? -