Element.sourceIndex (Property)

The index value of this element in the document.all[] array.


JScript - 3.0
Internet Explorer - 4.0
Property/method value type:Number primitive
JavaScript syntax:IEmyElement.sourceIndex

In MSIE, all Element objects are available in the all[] array object for the document. If you need to know the element's position within that order, this property tells you what the index value for the object is. This will change as objects are created and destroyed in the page.

This is useful to be able to tell the relative position of objects in the page, perhaps so that you can scroll forwards or backwards to reach them.


See also:Element object

Property attributes: