Subj : Re: IE & NS event To : netscape.public.mozilla.jseng,netscape.public.mozilla.dom From : Martin Honnen Date : Tue Apr 19 2005 06:34 pm Crosspost and followup-to netscape.public.mozilla.dom. Freak wrote: > var num=event.srcElement.sourceIndex > In IE this var num will return a number > In NS we use e.target > Is there a equivalent to find the var num in Netscape? I think the sourceIndex in IE gives the index into the document.all collection. With Mozilla you would need to build your own "all" collection e.g. var allElements = document.getElementsByTagName('*'); for (var i = 0; i < allElements.length; i++) { if (allElements[i] == e.target) { alert('sourceIndex is ' + i); } } -- Martin Honnen http://JavaScript.FAQTs.com/ .