469,076 Members | 1,346 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,076 developers. It's quick & easy.

How can I temporarily disable vertical scrollbar?

hsriat
1,654 Expert 1GB
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
3 4762
acoder
16,027 Expert Mod 8TB
Instead of disabling the scrollbar, use position:fixed to keep the div at the same position on the page.
Feb 11 '08 #2
hsriat
1,654 Expert 1GB
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
16,027 Expert Mod 8TB
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.

Similar topics

3 posts views Thread by David Rwj Cherry CS2000 | last post: by
reply views Thread by Gene Hubert | last post: by
1 post views Thread by CARIGAR | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.