K
KathyB
I have the following script in an html page:
function goToPosition()
{
varGoTo = document.write(document.cookie("Position"));
document.scrollTo(0, varGoTo);
}
</head>
<body onload="goToPosition()">
When I put the onload="goToPosition()" in, I get the error message
"object doesn't support this action". I've also tried putting in after
the </body> tag as another script...no go.
I'm setting the cookie with these lines in another function:
varScroll = document.body.scrollTop; document.cookie("Position") =
varScroll;
Any clues/suggestions greatly appreciated. I recently posted a similar
question, but rearranged how I was doing it, still no luck, so I'm
trying again.
Thanks.
Kathy
function goToPosition()
{
varGoTo = document.write(document.cookie("Position"));
document.scrollTo(0, varGoTo);
}
</head>
<body onload="goToPosition()">
When I put the onload="goToPosition()" in, I get the error message
"object doesn't support this action". I've also tried putting in after
the </body> tag as another script...no go.
I'm setting the cookie with these lines in another function:
varScroll = document.body.scrollTop; document.cookie("Position") =
varScroll;
Any clues/suggestions greatly appreciated. I recently posted a similar
question, but rearranged how I was doing it, still no luck, so I'm
trying again.
Thanks.
Kathy