复制代码代码如下::
<! DocType html public "-// w3c // dtd xhtml 1.0 transitional // en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transsitional.dtd">
<html xmlns = "http://www.w3.org/1999/xhtml">
<kopf>
<meta http-äquiv = "content-type" content = "text /html; charset = gb2312" />
<title> Timeout </title>
</head>
<body onload = "countsecond ()">
<Eingabe type = "text" id = "Zeit" style = "border: 0px;" size = "1px">
</body>
</html>
<Script>
x = 0
Funktion countsecond ()
{x = x+1
document.getElementById ("Zeit"). value = x;
setTimeout ("countsecond ()", 1000)
}
</script>