Easy Tutorial
❮ Jsref Valueof Date Prop Win Frames ❯

HTML DOM item() Method

Element Object

Example

Return the first child node of an element:


Definition and Usage

The item() method returns the node at the specified index in a node list.

Syntax:

Alternative syntax method:


Browser Support

All major browsers support the item() method.


Syntax

Parameters

Parameter Type Description
index Number Required. The index of the node you want to return from the node list.

Return Value

Type Description
Node object The node at the specified index.

Technical Details

| DOM Version | Core Level 1 Nodelist Object | | --- | --- |


Element Object

❮ Jsref Valueof Date Prop Win Frames ❯