//Function to display the current time
function displayTime() 
{
    var elt = document.getElementById("clock");  // Find element with id="clock"
    var now = new Date();  // Get current time
    elt.innerHTML = now.toLocaleTimeString();    // Make elt display it
    setTimeout(displayTime, 1000);               // Run again in 1 second
}
window.onload = displayTime;  // Start displaying the time when document loads.
