S
Stanimir Stamenkov
<form name="myForm" action="...">
<p><input type="text" name="myElem"></p>
</form>
As far as I was able to get the following is the standard way of
accessing HTML form elements:
document.forms['myForm'].elements['myElem']
But I have also seen the following:
document.forms['myForm'].myElem
Is the later correct usage or it just happens all browsers I've
tried with (IE 6, Mozilla 1.8, Opera 9.2 and Safari 3.1 on Windows)
support it for compatibility with existing Web content?
<p><input type="text" name="myElem"></p>
</form>
As far as I was able to get the following is the standard way of
accessing HTML form elements:
document.forms['myForm'].elements['myElem']
But I have also seen the following:
document.forms['myForm'].myElem
Is the later correct usage or it just happens all browsers I've
tried with (IE 6, Mozilla 1.8, Opera 9.2 and Safari 3.1 on Windows)
support it for compatibility with existing Web content?