复制代码代码如下:
<! doctype html public "-// w3c // dtd xhtml 1.0 transitional // en"
<html xmlns = "http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv = "content-type" content = "text /html ؛ charset = gb2312" />
<title> المهلة </title>
</head>
<body onload = "countsecond ()">
<type type = "text" id = "time" style = "الحدود: 0px ؛" الحجم = "1px">
</body>
</html>
<script>
x = 0
الوظيفة countsecond ()
{x = x+1
document.getElementById ("time"). value = x ؛
setTimeout ("countsecond ()" ، 1000)
}
</script>