Hi,

http://developer.mozilla.org/en/docs/Using_Web_Standards_in_your_Web_Pages
states:

"The best and most supported practice for getting scriptable access to
an element in an HTML page is to use document.getElementById(id). "

A colleague of mine reckons such access will be much slower than
accessing the element directly.

So which is faster?

document.forms.myform.elements.field1

or

document.getElementById(field1)


Cheers,

Simon


*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************

Reply via email to