How to disable scrollbars with JavaScript?
Posted
by Flupkear
on Stack Overflow
See other posts from Stack Overflow
or by Flupkear
Published on 2009-01-07T20:49:10Z
Indexed on
2010/03/25
19:23 UTC
Read the original article
Hit count: 430
I need to lock the browser scrollbars when I show a div that represent a modal window in Internet Explorer 7 only.
Googling I found that I can use document.body.style.overflow='hidden'
but this doesn't work for IE7. I also tried with document.body.scroll="no"
which works but only after I mouse over the scrollbar :-S
Does anybody knows a better aproach?
Thansks
© Stack Overflow or respective owner