You are here: irt.org | FAQ | JavaScript | Image | Q737 [ previous next ]
By looping through the image object looking for an image with a name property equal to the one you are searching for:
<SCRIPT LANGUAGE="JavaScript"><!--
var position = -1;
for (var i=0;i<document.images.length;i++)
if (document.images[i].name == 'thisone') position = i;
//--></SCRIPT>