By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,086 Members | 1,452 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,086 IT Pros & Developers. It's quick & easy.

How can I temporarily disable vertical scrollbar?

hsriat
Expert 100+
P: 1,654
How can I temporarily disable vertical scrollbar?

I have replaced confirmation boxes and alert boxes with inlay popup DIVs. But while they are on the screen, I need to disable scrollbar of the page so that user may not access the main page (just like in conformation boxes).

Also I need to disable the main page leaving that popup DIV.

Scrollbar is the main issue.

How can I do it?
Feb 9 '08 #1
Share this Question
Share on Google+
3 Replies


acoder
Expert Mod 15k+
P: 16,027
Instead of disabling the scrollbar, use position:fixed to keep the div at the same position on the page.
Feb 11 '08 #2

hsriat
Expert 100+
P: 1,654
Instead of disabling the scrollbar, use position:fixed to keep the div at the same position on the page.
.


...OH!!! that's COOL!!!

is it possible to disable the whole page other than the div itself?
Feb 11 '08 #3

acoder
Expert Mod 15k+
P: 16,027
Yes, you can see an example here.
Feb 11 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.