详细问题描述及疑问:期待您的答案,你就是当代的活雷锋,太感谢了 !
<formmethod="post"action="###"name="myform"onsubmit="checkpost()"><labelfor="name">用户名:</label><inputtype="text"name="name"id="name"/><br/><labelfor="pw">密码:</label><inputtype="password"name="pw"id="pw"/><br/><inputtype="submit"value="提交"/></form><script>functioncheckpost(){if(document.fo意践钟育团双优rms[0].name.value=="你要的用户名"&&document.forms[0].pw.value=="你要的密码")问答{window.location="你要跳转的地址";}else{alert("用户名或密码不正确!")returnfalse;}}</script>