karakav
asked on
Javascript: Difference between getElementById and document.forms
What is the difference between document.getElementById() and document.forms[0].element
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks.
document.forms is part of the DOM specification and so should not be unnecessarily avoided in favour of getElementById, simply use whatever is easiest.