Name
sourceIndex — NN n/a IE 4 DOM n/a
Synopsis
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.all.elementID
.sourceIndex
Value
Positive integer or zero.
Default
None.
Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.