Menu
Well I’m new to javascript, and new to this forum ?
I’m trying to make a counter, that for now will count up to ten, first on the page displaying 1, then erasing the 1, and displaying a 2 and so on. However I’m having a lot of trouble doing this -.- for some reason it displays the 1, and then it stops ? help fixing this would be appreciated ?
[CODE]<html>
<body>
<script>
var count=0
function counter()
{
count++
document.write(count)
document.close()
}
for (var i=0; i<10; i++ )
{
setTimeout(“counter()”,1000)
}
</script>
</body>
</html>