Help please.
I am trying to get a page to reload every two minutes using setTimeout but it seems to be ignoring the number of seconds entered.
I have created a simple program which simply displays the date & time, but the time is being incremented by the second. You can see the program at :-
The script I am using is :-
<script type="text/javascript">
ourDate = new Date();
document.write('The last update was :- <BR>'
+ ourDate.toLocaleString() +
'.');
theUrl = 'test.html';
location.replace(theUrl); setTimeout("location.replace()",1200000)
</script>
The 1200000 is being ignored. Can someone help please
I am trying to get a page to reload every two minutes using setTimeout but it seems to be ignoring the number of seconds entered.
I have created a simple program which simply displays the date & time, but the time is being incremented by the second. You can see the program at :-
The script I am using is :-
<script type="text/javascript">
ourDate = new Date();
document.write('The last update was :- <BR>'
+ ourDate.toLocaleString() +
'.');
theUrl = 'test.html';
location.replace(theUrl); setTimeout("location.replace()",1200000)
</script>
The 1200000 is being ignored. Can someone help please
Comment