Yann-Erwan Perio wrote:
Quote:
Actually I was simply commenting on the fact that document.all should be
called as a *method* according to MSDN (though they use the expression
"document.all collection" quite frequently in the reference)- while I'd
advise using it with the array-like accessors, for the reasons explained
precedently. |
document.all is a collection, since it can be accessed using square bracket
array notation: document.all[...].
The confusions is that collections in IE can also be accessed using "method
notation" or "vbscript array notation" or whatever you want to call it:
document.all(...), document.forms(...).elements(...), etc. which can lead to
massive confusion (and the source of many errors in other user agents).
--
Quote:
Grant Wagner <gwagner (AT) agricoreunited (DOT) com |
* Client-side Javascript and Netscape 4 DOM Reference available at:
*
http://devedge.netscape.com/library/...ce/frames.html
* Internet Explorer DOM Reference available at:
*
http://msdn.microsoft.com/workshop/a...ence_entry.asp
* Netscape 6/7 DOM Reference available at:
*
http://www.mozilla.org/docs/dom/domref/
* Tips for upgrading JavaScript for Netscape 7 / Mozilla
*
http://www.mozilla.org/docs/web-deve...upgrade_2.html