function getElement(){
var loginForm=document.loginForm;
var arrary=loginForm.elements;
var message="爱上对方过后就哭了";
alert(message);
for(var i=0;i<arrary.length;i++){
message+="第"+(i+1)+"个表格域:type="+arrary[i].type+",id="+arrary[i].id+",name="+arrary[i].name+",value="+arrary[i].value+"<br/>";
}
document.getElementById("loginForm").innerHTML=message;
alert(message);
}
//onsubmit使用;
function getA(){
var a =document.getElementById("as");
var b=document.getElementById("email");
var c=document.getElementById("pwd");
if(b.value==""){
return false;
}
if(c.value==""){
return false;
}
return true;
}
//onreset使用:
function getB(){
var b=document.getElementById("email");
var c=document.getElementById("pwd");
if(c.value==""){
return true;
}
return false;
}
function getC(){
var b=document.getElementById("email");
var c=document.getElementById("pwd");
if(b.value!="" && c.value!=""){
var loginForm=document.forms[0].submit();
}
}
function getElement(){
var loginForm=document.loginForm;
var arrary=loginForm.elements;
var message="爱上对方过后就哭了";
alert(message);
for(var i=0;i<arrary.length;i++){
message+="第"+(i+1)+"个表格域:type="+arrary[i].type+",id="+arrary[i].id+",name="+arrary[i].name+",value="+arrary[i].value+"<br/>";
}
document.getElementById("loginForm").innerHTML=message;
alert(message);
}
//onsubmit使用;
function getA(){
var a =document.getElementById("as");
var b=document.getElementById("email");
var c=document.getElementById("pwd");
if(b.value==""){
return false;
}
if(c.value==""){
return false;
}
return true;
}
//onreset使用:
function getB(){
var b=document.getElementById("email");
var c=document.getElementById("pwd");
if(c.value==""){
return true;
}
return false;
}
function getC(){
var b=document.getElementById("email");
var c=document.getElementById("pwd");
if(b.value!="" && c.value!=""){
var loginForm=document.forms[0].submit();
}
}
function getElement(){ var loginForm=document.loginForm; var arrary=loginForm.elements; var message="爱上对方过后就哭了"; alert(message); for(var i=0;i<arrary.length;i++){ message+="第"+(i+1)+"个表格域:type=