M
Matt
I tried to display all html control types in the form. But it has run
time error
"object doesn't support this property or method" on
document.write(obj.type);
Even I do document.write('hello world'); it still has the same error.
function clearForm()
{ var i=0;
for (i=0; i<InputForm.elements.length-1; i++)
{ var obj = InputForm.elements;
document.write(obj.type); //runtime error: object doesn't support
this property or method
}
}
any ideas?? thanks!!
time error
"object doesn't support this property or method" on
document.write(obj.type);
Even I do document.write('hello world'); it still has the same error.
function clearForm()
{ var i=0;
for (i=0; i<InputForm.elements.length-1; i++)
{ var obj = InputForm.elements;
document.write(obj.type); //runtime error: object doesn't support
this property or method
}
}
any ideas?? thanks!!