코드 사본은 다음과 같습니다.
<html xmlns = "http://www.w3.org/1999/xhtml">
<헤드>
<meta http-equiv = "content-type"content = "text /html; charset = gb2312" />
<title> 60이 페이지를 새로 고쳐 </title>
<script type = "text/javaScript">
var t;
t = 60;
함수 shua ()
{
t = t-1;
document.getElementById ( "hints"). innerHtml = "다음 새로 고침 시간 전에"+t+"초";
if (t == 0)
{
document.location.reload ();
}
}
</스크립트>
</head>
<body onload = "window.setinterval (shua, 1000);">
<centre>
<font id = "힌트"스타일 = "색상 : 파란색"> 다음 새로 고침 시간 전에 60 초 남았습니다 </font> <br/>
<centre>
</body>
</html>