It seems like a simple beginners question, but I'm unable to find an answer anywhere.
Let's say I have this HTML:
<input type="text" name="myTxt">
document.myForm.myTxt.value = 'foo';
document.myDiv.mySpan.innerHTML = "bar";
As designed by W3C.
There's really nothing to argue about. You can access the an HTMLCollection of all the forms on the page through
document.forms, much like you can images with
document.images, applets with
document.applets, links with
document.links and anchors with