crazy scrollTo

Z

z

Hello,

I have a bit of a problem with scrollTo (browser is IE5.5)
I am using scrollTo so that the last line I send to the browser
is always positionned at the bottom of the screen.
And it has always worked.

But in the code below, the scrollTo does not work !!
I have a few lines I can not see below the bottom of the screen.
And very odd, if i look at the source in the browser (view source)
I can see that scrollTo is well present at the end of the page.
Just before </body></html>
And if i add an alert('aaa') before the scrollTo then it works
perfectly ! (because of the timeout ????)


Any idea more than welcome.

Pierre.

<script>
//debugWin.document.writeln("After_3: " + $inter + "sec");
var tbl=parent.ldc_3.document.getElementById("answerdate");
tbl.innerText="$answerDate";tbl.bgColor="$color1";
var tbl=parent.ldc_3.document.getElementById("answertime");
tbl.innerText="$answerTime";tbl.bgColor="$color1";
var tbl=parent.ldc_3.document.getElementById("releasedate");
tbl.innerText="$releaseDate";tbl.bgColor="$color2";
var tbl=parent.ldc_3.document.getElementById("releasetime");
tbl.innerText="$releaseTime";tbl.bgColor="$color2";
var tbl=parent.ldc_3.document.getElementById("callstate");
tbl.innerText="$callstate";tbl.bgColor="$color2";
var tbl=parent.ldc_3.document.getElementById("endpoint");
tbl.innerText="$endpoint";tbl.bgColor="$color3";
</script>
`;
if ($stop==2) {
print qq`
<h2>Call has been released - End of analyze !</h2>
<h2 align="center"><font color="red">Bye</font></h2>
<script>window.scrollTo(0,1000000);</script>
......
Does not work.

But this works

<script>alert('aaa');window.scrollTo(0,1000000);</script>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top