javascript Element sourceIndex
| sourceIndex | NN n/a IE 4 DOM n/a |
| Read-only | |
Returns the zero-based index of the element among all elements in the document. Elements are numbered according to their source code order, with the first element given a sourceIndex of zero. |
|
| Example | |
var whichElement = document.getElementById("elementID").sourceIndex;
|
|
| Value | |
Positive integer or zero. |
|
| Default | |
Element-specific. |
|
691,Nickname,Homepage or email,Comments here,Add comment
