Arun
Arun

Reputation:

disable scroll bar on the div

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

Answers (2)

cllpse
cllpse

Reputation: 21727

Seems like you're looking for overflow: hidden; perhaps?

Upvotes: 2

Adrian Mester
Adrian Mester

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

Related Questions