472,139 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,139 software developers and data experts.

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 4903
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
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.