Hi !
I'm proud to present you my... first JavaScript lines... which drive me crazy !
I have a page with two frames and I'd like to implement an automatic refresh in only one of them.
I put the following code in it, and it works fine.
But if change the code by adding the blue part, the refresh is done two times and then stops.
Any idea why this happens ?
Thanks a lot !
<script language=\"JavaScript\">
<!--
var sURL = "http://www.myURL" or var sURL = "http://www.myURL#endPage"
function doLoad()
{
setTimeout( \"refresh()\", 5*1000 );
}
function refresh()
{
window.location.href = sURL;
}
//-->
</script>
<script language=\"JavaScript1.1\">
<!--
function refresh()
{
window.location.href = sURL;
window.location.replace(sURL);
}
//-->
</script>
<body onload="doLoad()">
...
<a name='endPage'>
</body>
I'm proud to present you my... first JavaScript lines... which drive me crazy !
I have a page with two frames and I'd like to implement an automatic refresh in only one of them.
I put the following code in it, and it works fine.
But if change the code by adding the blue part, the refresh is done two times and then stops.
Any idea why this happens ?
Thanks a lot !
<script language=\"JavaScript\">
<!--
var sURL = "http://www.myURL" or var sURL = "http://www.myURL#endPage"
function doLoad()
{
setTimeout( \"refresh()\", 5*1000 );
}
function refresh()
{
window.location.href = sURL;
}
//-->
</script>
<script language=\"JavaScript1.1\">
<!--
function refresh()
{
window.location.href = sURL;
window.location.replace(sURL);
}
//-->
</script>
<body onload="doLoad()">
...
<a name='endPage'>
</body>