用户:UnFtr/Sandbox3

来自Limbo Wiki Mirror
limbowiki>UnFtr2024年10月4日 (五) 18:35的版本 (创建页面,内容为“<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> <div style="text-align: center;"> <p><strong>框上面的字</strong></p> <p><input type="te…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

<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>