How to disable scrollbars with JavaScript?

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 `'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

以上就是How to disable scrollbars with JavaScript?的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准