Salin kode kode sebagai berikut:
<html xmlns = "http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv = "konten tipe" content = "text /html; charset = utf-8" /> />
<title> dokumen non -judul </iteme>
<bahasa skrip = "javascript">
var t = null;
t = setTimeout (waktu, 1000);
Waktu fungsi ()
{{
ClearTimeout (T); // CLEAR Timer
dt = tanggal baru ();
var h = dt.gethouse ();
varm = dt.getMinutes ();
var s = dt.getSeconds ();
document.geteLementById ("Timeshow").
t = setTimeout (waktu, 1000);
}
</script>
</head>
<body>
<label id = "Timeshow"> </terakhir
</body>
</html>