การคัดลอกรหัสมีดังนี้:
<! 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">
<head>
<meta http-equiv = "content-type" content = "text /html; charset = utf-8" />
<tite> เอกสารชื่อ UNT </title>
<ภาษาสคริปต์ = "JavaScript">
Words1 = "ยินดีต้อนรับ";
ตอนนี้ = วันใหม่ ()
Words2 = now.tolocalestring ();
ธง = 0;
ฟังก์ชั่นแฟลช ()
-
ถ้า (ธง == 0)
-
window.status = words1;
ธง = 1;
-
อื่น
-
window.status = words2;
ธง = 0;
-
Settimeout ("Flash ()", 2000);
-
</script>
</head>
<body onload = "flash ()">
เนื้อหาหน้าเว็บ
</body>
</html>