The following line
document.someFo rm.next = new Submit("next");
produces the error
Error: Submit is not defined
I find this surprising, given that Submit descends from Object,
and the constructor 'new Object("value") ' is well defined...
Clearly JavaScript and I have very different ideas about inheritance.
Be that as it may, is it possible to generate a new HTML input
element on the fly (i.e. in response to some user action, such as
a mouse click)?
Thanks!
jill
Comment