• 1115


    charset=utf-8" />
    <title>无标题文档</title>
    
    <script type="application/javascript">
    
    //setTimeout("window.location='http://www.baidu.com'",3000);
    //setInterval("alert('周期执行')",2000);
    
    window.history.go(1);
    
    function jianc()
    {
      //var t =document.getElementById('tid1');
      var t = form1.tid1;
        //var t = form1.tname1;
    //var t = form2.tid1;
        //var t = form2.tname1;
    
    
      if(t.value =='')
      {
          alert('请输入用户代码');
          return false;
       }
     
          var p =document.getElementsByName('tname2');
    //var p =document.getElementsByName('tname2')[0];
    
        var a =p[0];
    //if(p.value == '')
        if(a.value == '')
        {
            alert('请输入用户密码');
            return false;
        }
        return true;
    }
    
    
    </script>
    
    </head>
    
    <body>
    
    
    <form id="form1" name="form2" method="get" onSubmit="return jianc();" >
    
    用户代码:<input id="tid1" name="tname1" value="" type="text" width="30"/><br><br>
    
    用户密码:<input id="tid2" name="tname2" type="password" width="30"/><br> <br>
    <input type="submit" value="登录" />
    
    </form>
    
    
    <input type="button" value="跳转" onClick="window.history.go(-1);"/>
    
    
    
    
    
    
    
    
    
    
    </body>
    </html>
  • 相关阅读:
    Chap5:操作文件和目录[The Linux Command Line]
    ABC3
    ABC2
    ABC
    Spring MVC / Boot
    Usefull Resources
    [ Learning ] Design Pattens
    [ Learning ] Spring Resources
    URL Resources
    [ Windows BAT Script ] BAT 脚本获取windows权限
  • 原文地址:https://www.cnblogs.com/ymf123/p/4967727.html
Copyright © 2020-2023  润新知