The following code in:

```
<script type="text/javascript">

function a() {
    document.write("bob ");
}

setInterval("a()", 1000);

</script>

```

is to supposed to have an out put of 1 `bob`, `printed` on the browser, `every second`.

I am using firefox, and it only prints onces, and nothing....
anyone has any ideas why? mauybe I'm missing something?
ec = now.getSeconds();
 document.write(hours+':'+mins+':'+sec+"  
");
 }

```
UPDATE EDIT:

```

I have the same problem with this code:

```
<script type="text/javascript">
function printtime () {
    var now = new Date();
    var hours = now.getHours();
    var mins = now.getMinutes();
    var sec = now.getSeconds();
    document.write(hours+':'+mins+':'+sec+"<br />");
}

setInterval("printtime()", 1000);
</script>

```

It's supposed to print the time on the browser under the previous one, once per second.... but it wont print further than the first..