OK, I'm stumped.
I am trying to use window.scrollTo(x, y) when after a page has finished loading. The code works fine in Netscape/Mozilla, but fails in Opera/IE6 (possibly other versions of IE, but I only have 6 to test on ATM).
I was obtaining the x/y coordinates dynamically, but since it was not working I have them hard-coded, for now. My code is:
I have verified that the function is being called.
I'm not sure if it matters but I have the DOCTYPE set to HTML 4.01 Transitional. The only reason I mention it is because the doctype was causing scrollTop to fail, but that has now been fixed
TIA,
Itshim
I am trying to use window.scrollTo(x, y) when after a page has finished loading. The code works fine in Netscape/Mozilla, but fails in Opera/IE6 (possibly other versions of IE, but I only have 6 to test on ATM).
I was obtaining the x/y coordinates dynamically, but since it was not working I have them hard-coded, for now. My code is:
Code:
function Scroll_To()
{
window.scrollTo(0, 450);
}
I'm not sure if it matters but I have the DOCTYPE set to HTML 4.01 Transitional. The only reason I mention it is because the doctype was causing scrollTop to fail, but that has now been fixed
TIA,
Itshim