Hmmm.... great info, thanks Hernst. Danke! Is there anyway to emulate this with a JS script? The script I am using relies solely upon this property... otherwise, I will have to manually number every applicable element on the page with another argument and adjust the script accordingly... There are several thousand such elements. :-(
Is there anyway you know of that can index objects of a certain type (images) (maybe store them in a persistent array, etc.) to emulate object.sourceIndex?
Main Topics
Browse All Topics





by: hernst42Posted on 2007-07-15 at 22:27:50ID: 19493231
The attribute is only available in IE and gives each tag in the page a number. There is no such variable in FF. Such code is typical generated by FrontPage. e.g:
itle> ument.all. Absatz.sou rceIndex)" >Test</a>
vascript/o bjekte/ all .htm#sourc e_index
<html><head><title>Test</t
</head><body>
<p>Etwas Text mit<br>Zeilenumbruch</p>
<p id="Absatz">HTML-Element, aber das wie vielte?</p>
<a href="javascript:alert(doc
</body></html>
will alert 7 as the a -tag is then seventh element in the html.
in german: http://www.selfhtml.net/ja