<html>
<head>
<scirpy>
window.onload=function(){
var f1=document.f1;
var f2=document.forms[1];
alert(f2.id);
var f3=document.forms['f1'];
}
</script>
</head>
<body>
<form id="f1" value="f1"></from>
<from id="f2" value="f2"></form>
</body>
</html>
<html>
<head>
<script>
function checkform(f){
var uname=f.username;
var pwd=f.password;
if(uname.value.length<4){
alert('用户长度必须大于4');
return false;
}
if(pwd.value.length!=6){
alert('用户密码必须大于 6位');
return false;
}
return true;
}
</script>
</head>
<body>
<form id="f1" name="f1" method="post" action=""
onsubmit="return checkform(this)">
<input name="username" value="" /></br>
<input name="password" value="" /></br>
<input type="button" value="提交" />
</form>
</body>
</html>
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有