intrivious
Programmer
All I need is a script telling the browser to print a string to the screen every x seconds. Is this code incorrect?
Why does this not work? It displays the string once, then on the next second, it throws an error saying 'missing object'?
Thanks in advance
Code:
<html>
<head>
<script type="text/javascript">
function init() {
document.write("blah blah blah<br>");
setTimeout("init()", 1000);
}
</script>
</head>
<body onload='init()'>
</body>
</html>
Why does this not work? It displays the string once, then on the next second, it throws an error saying 'missing object'?
Thanks in advance