window.ScrollMaxY or X - How to set in FireFox 3?

window.scrollMaxY can be set via that property in IE and older versions of Firefox, but when trying in FF3 it says "Cannot set this property as it only has a getter". What is my alternative? EDIT: The reason why I'm asking is that I'm fixing some very horrible JS written by someone else, it has a function to keep a div centered on the page while scrolling, and has this line: // Fixes Firefox incrementing page height while scrolling window.scrollMaxY = scrollMaxY Obviously this doesn't work, but the main issue is that when the page is scrolled, it grows in length.

以上就是window.ScrollMaxY or X - How to set in FireFox 3?的详细内容,更多请关注web前端其它相关文章!

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

评论 抢沙发

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

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