[Javascript] What is the equivalent of document.all in Netscape?
Roland Dong
rdong at cait.org
Thu May 1 14:42:00 CDT 2003
Hi, I have the following javascript but it only works in IE. The problem is
document.all.gradeTaught. It does not works in Netscape. What is the
equivalent code for Netscape?
var gtChecked='';
var gtAll=document.all.gradeTaught;
for(var i=0; i<gtAll.length; i++)
{ if (gtAll[i].checked)
{ gtChecked=gtChecked+gtAll[i].value+"/";
document.regForm.gradeTaughts.value=gtChecked;
}
}
Thanks a lot,
Roland
More information about the Javascript
mailing list