I'm trying to create an updating clock in Javascript. Everything is working correctly as I step through the debugger, except that it's not actually updating the span. Any ideas why?
<script type="text/javascript">
// The following line of code is in a setInterval()
// time is set correctly, according to my debugger
document.getElementById('clock').value = time;
}
</script>
<span id="clock">This should update
</span>