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 |
Prev | Home | Next |
Element.setExpression() | Up | Element.style |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |