Assignment012d

JavaScript Window Object - setInterval

Unlike window.setTimeout, window.setInterval keeps running the action code over and over
again at a set number of milliseconds (1000 miliseconds = 1) second. Here's an example:

<script>

var action="window.alert('This will annoy you!');";

setInterval(action, 2000);

</script>