Originally Posted by mark103
Have a look at setInterval(). You seem to be using that already, so I don't entirely understand your question.
To write text to the page, use a <span id = "whatever"> and then document.getElementById("whatever").innerHTML = "thetextyouwanttodisplay".
Again, you seem to be doing that already.
Perhaps you need to clarify exactly what it is you are trying to achieve.
I notice an error:-
var d = date.getDate();
var h = today
var m = today
I would prefer the variable name today or now to date, as date is easily confused with Date.
The clocktimer script is very inefficient as the constant definitions of weekday and month names are re-evaluated each time the function is triggered (each second). Place these definitions outside the function.
All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.