|
|
| 第1行: |
第1行: |
| [[/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>
| |
| <div style="text-align: center;">
| |
| <p><strong>框上面的字</strong></p>
| |
| <p><input type="text" style="width:180px;" class="textBox" placeholder="框里的字" id="pass"/></p>
| |
| <p><input type="submit" value="按钮显示的字" class="submitButton" onclick="return login();"/></p>
| |
| </from>
| |
| </div>
| |
| [[/html]]
| |