Archive for August, 2008

“window.scrollTo” javascript function does not work in Internet Explorer 6

August 1, 2008

Why Can Fail?!

This is a wierd one. I’m trying to call “window.scrollTo(x,y)” javascript function to scroll my sharepoint webpage to the end. Other than inheriting the sharepoint header, it can be considered a normal aspx page.In IE6, the page refuses to scroll. In Mozilla Firefox, the page scrolls just fine. Figures. :\

Why Like That?!

No idea. This is probably 1 of those javascript bugs in IE6. :\

What To Do?!

Found a workaround on the web. Encase the window.scrollTo method within a setTimeout method, and then it works.


setTimeout(‘window.scrollTo(0, 100)’,1);

This works in IE6. 🙂

window.scrollTo(0, 100)

This does not work in IE6. 😦

Where Got Say?!

This is the forum post from I got the workaround.