คัดลอกรหัสรหัสดังนี้:
<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;
ฟังก์ชั่น shua ()
-
t = t-1;
document.getElementById ("คำแนะนำ"). innerhtml = "ยังมี"+t+"วินาที" ก่อนเวลารีเฟรชครั้งต่อไป;
ถ้า (t == 0)
-
document.location.reload ();
-
-
</script>
</head>
<body onload = "window.setInterval (shua, 1000);">
<enter>
<font id = "คำแนะนำ" style = "สี: สีน้ำเงิน"> 60 วินาทีก่อนเวลารีเฟรชครั้งต่อไป </font> <br/>
<enter>
</body>
</html>