Hello all.
I am having a problem with this function. It turns on and off checkboxes. For some reason, this does not work in Netscape 6.2. I get the following error: "document.form1.elements is not a function"
Does anyone know why? Thanks!
================================================
function CheckAll(blnCheck){
var i;
for(i=0;i<document.form1.elements.length;i++){
if(document.form1.elements(i).type=="checkbox"
{
document.form1.elements(i).checked=blnCheck;
}
}
}
I am having a problem with this function. It turns on and off checkboxes. For some reason, this does not work in Netscape 6.2. I get the following error: "document.form1.elements is not a function"
Does anyone know why? Thanks!
================================================
function CheckAll(blnCheck){
var i;
for(i=0;i<document.form1.elements.length;i++){
if(document.form1.elements(i).type=="checkbox"
document.form1.elements(i).checked=blnCheck;
}
}
}