66
rated 0 times
[
70]
[
4]
/ answers: 1 / hits: 27968
/ 12 Years ago, thu, june 14, 2012, 12:00:00
Is there a difference between this.form
and document.forms (document[forms])
or, are they similar?
Here is the code I wrote to test the difference.
<form name=myForm id=myForm>
<input type=text name=haha id=myForm value=laughable onclick=alert(this.form.haha.value) />
</form>
alert(document.forms.myForm.haha.value);
They both result in the same thing.
More From » forms