Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to not allow the user to scroll long html page using javascript/jquery?
how to freeze scrolling when scrollbars are present?

:-D
Posted
Updated 25-Mar-10 22:37pm
v2

$("body").css("overflow", "hidden");

seems doesn't work
 
Share this answer
 
Try this.
Just add this to the body tag of your html doc,
scroll=no.

XML
<head></head>
    <body scroll="no" ></body>
</html>
 
Share this answer
 
Thanks a lot that worked
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900