コードコピーは次のとおりです。
<html xmlns = "http://www.w3.org/1999/xhtml">
<head>
<Meta http-equiv = "content-type" content = "text /html; charset = gb2312" />
<Title> 60このページを更新</title>
<script type = "text/javascript">
var t;
t = 60;
functionshua()
{
T = T-1;
document.getElementById( "Hints")。innerhtml = "次の更新の前にまだ「+t+"秒」があります。
if(t == 0)
{
document.location.reload();
}
}
</script>
</head>
<body onload = "window.setinterval(shua、1000);">
<center>
<font id = "hints" style = "color:blue">次の更新時間の前に残り60秒</font> <br/>
<center>
</body>
</html>