用户:UnFtr/Sandbox3

来自Limbo Wiki Mirror

/html <script>

  function login(){
  var pass=document.getElementById("pass").value;
  if(pass=="ABC"){
      alert("abc");
      top.location.href='输对的链接';
  return false;
  }else{
      alert("xyz");
      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>

/html