Preferably with just javascript. But if that’s too hard, jquery will be ok (I don’t want to load jquery because the page has to load really fast).
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This question is pretty ambiguous, and I get the impression that you might be a little confused in your wording. This handler will disable the horizontal scrollbar if the body width exceeds 1000px, and the vertical scrollbar if the body height exceeds 600px. If this is really the functionality you’re looking for, you should be aware that it’s likely to frustrate users who are used to having full control over the scroll position of the page. Anyway, here’s what (I think) you asked for: