<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<script>
  function sorry()  {
    document.close(); //关闭打开的无效页面
    document.open();
    history.back() //返回原来的页面
  }
  function pass(){
    password="pass"+window.prompt("请输入密码:","");
    if(password=="passguest")  {
        window.alert("欢迎您,我的朋友!");
      location="apani.htm"
      }else{window.alert("您所输入的密码不正确,不能进入!");
    sorry();
  }
  }
  </script></head><body>
  <a href="#" onClick="pass()">点此进入</a>
  </body
></html>