复制代码代码如下 :
<! doctype html public "-// w3c // dtd xhtml 1.0 Transitional // en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">
<html xmlns = "http://www.w3.org/1999/xhtml">
<헤드>
<meta http-equiv = "content-type"content = "text /html; charset = gb2312" />
<title> 타임 아웃 </title>
</head>
<body onload = "countsecond ()">
<입력 유형 = "text"id = "time"style = "테두리 : 0px;" 크기 = "1px">
</body>
</html>
<cript>
x = 0
기능 카운트 초 ()
{x = x+1
document.getElementById ( "time"). value = x;
settimeout ( "countsecond ()", 1000)
}
</스크립트>