... until the collector arrives ...

This "blog" is really just a scratchpad of mine. There is not much of general interest here. Most of the content is scribbled down "live" as I discover things I want to remember. I rarely go back to correct mistakes in older entries. You have been warned :)


Javascript Clock

Here is a simple clock in HTML/Javascript:

<p>The time is <span id="clock">unknown<script language="javascript">
function clockTimeout()
    var clockSpan = document.getElementById("clock");
    var timeNode = document.createTextNode(new Date().toTimeString().substring(0, 8));
    clockSpan.replaceChild(timeNode, clockSpan.firstChild);
    window.setTimeout('clockTimeout()', 1000);

Blog Archive