The generator below produces Javascript code to create a self-updating digital clock for use on blogs or your own website.
The code will automatically update elements with id date
and time
. These can be span
,
p
or, as in the example, HTML5 time
tags. The output of the code can be seen on the left hand side.
Copy into
head
tag
Copy into body
tag