Employee Id | Employee Name | Position | Salary | Gender | Address |
---|---|---|---|---|---|
next page ... | next page ... | next page ... | next page ... | next page ... | next page ... |
EMP0001 | Margaret Martin | Accountant | 56,000 | Female | 1230 North Ave. Dallas, Texas 98551 |
EMP0002 | Martha Raynolds | Secretary | 35,000 | Female | 1900 Dallas Road Dallas, Texas 98554 |
The namedItem(name) method retrieves a node using a name. It first searches for a node with a matching id attribute. If it doesn't find one, it then searches for a Node with a matching name attribute, but only on those elements that are allowed a name attribute. If there isn't a matching node the method returns null. Retrieve the first FORM element and create a HTMLCollection by invoking the elements attribute. The method returns null since there is not a match of the name or id attribute.