用户:UnFtr/Sandbox3
来自Limbo Wiki Mirror
< 用户:UnFtr
/html <script>
  function login(){
  var pass=document.getElementById("pass").value;
  if(pass=="要输的内容"){
      alert("数对显示弹窗的字");
      top.location.href='输对的链接';
  return false;
  }else{
      alert("输错显示弹窗的字");
      top.location.href='输错的链接';
  return false;
    }   
  }
</script> <body>
框上面的字
<input type="text" style="width:180px;" class="textBox" placeholder="框里的字" id="pass"/>
<input type="submit" value="按钮显示的字" class="submitButton" onclick="return login();"/>
</from>
