Reputation:
I have a div.
I want that user should not be able to scroll the page if the height is more than 350px. Also the scroll bar should be visible in disable mode in that case.
I want to achieve this using javascript.
Thanks
Upvotes: 1
Views: 8383
Reputation: 2533
I can't say I completely understood what you want, but I think what you're looking for is CSS not javascript. Take a look at the overflow property.
Upvotes: 4