Hello,
I need to scroll the browser window up and am wondering why the following code doesn’t work in IE 6+ on Windows. It seems to work ok in Safari and Firefox and even IE 5.5 on the mac. Does IE (win) not support the scrollTo method?
function scrolldown() {
window.scrollTo(0,0)
}
<body onLoad=”scrolldown();>
For those of you who are wondering why I’m trying to do this, here is the situation. The page loads an iFrame with a linked external page including a target anchor to content low on the external page. This anchor in the external page that loads in the iframe is causing the main browser window to scroll down as well, and I don’t want that to happen. I need the top of the main page to be visible, and for only the iframe content to scroll to its anchor, if that makes any sense.