Javascript question

joel joel
Mon May 17 11:55:29 PDT 2004


I am going over some of my html/javascript beasties that I wrote for 
work. I am still confounded why these don't work properly in netscape or 
mozilla but do in opera6 and IE 5.5.

For example, these buttons don't display properly in mozilla:

<input type="button" value="Reset this form" onClick="ClearForm(form1)">

Then, mozilla doesn't handle arrays, for example, this function doesn't 
work:
function ClearForm(form){
for (i=0; i < form.length ; i++) {
 form[i].checked = false
 if (form[i].value.search(/^MARGINS *\$1U? *$/) > -1){form[i].checked=true}
 par[i] = "" }
 form[1].checked = true
}

Any insight appreciated,

Joel




More information about the Linux-users mailing list