Home > Web Front-end > JS Tutorial > body text

JavaScript HTMLCollection interface code_javascript skills

WBOY
Release: 2016-05-16 18:07:17
Original
1463 people have browsed it
Copy code The code is as follows:

interface HTMLCollection
{
//Contains nodes Number
readonly attribute unsigned long length;
//Return the corresponding node according to the specified index index
//The nodes in HTMLCollection are in a tree structure, and the index value index is node depth first The sequence number sorted by the method
Node item (in unsigned long index);
//Return the corresponding node according to the name or id attribute of the node
Node namedItem (in DOMString name);
}
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template