Describe two advantages of referencing form objects using methods such as getElementById() rather than the forms array.?
What will be an ideal response?
Any two of the following:One advantage of referencing form objects using methods such as getElementById() rather than the forms array is that you don't need to switch between using one syntax for referencingformobjects and another syntax for non-formobjects.In addition, using Documentobject methods makes your code more flexible when you need the same code to be able to refer to both form and non-form elements.Finally, use of the name attribute is not allowed in the strict DTD for XHTML, so if you're writing JavaScript to work with XHTML documents, you cannot use the forms array or other browser arrays.
You might also like to view...
External devices that engage in I/O with computer systems are grouped into three categories: human readable, machine readable, and __________
Fill in the blank(s) with the appropriate word(s).
From the list below, which is an INVALID variable name?
A. my_time B. _aboutTime C. 2_More D. Ans_4