You could do this using a library like jquery... ~Terry ---------------------------------------- From: " Nick Fitzsimons" <nick at nickfitz.co.uk> Sent: Thursday, September 06, 2007 11:37 AM To: "'JavaScript List'" <javascript at lists.evolt.org> Subject: Re: [Javascript] Listing Images on current page > What is the difference between > document.getElementsByTagName("img") > and > document.images > document.images is of type HTMLCollection: 708506> whereas the return value of document.getElementsByTagName() is of type NodeList: 6297177>. Both are live, so in practice there isn't much to choose between them; the main difference is that the HTMLCollection supports the "item" and "namedItem" methods, while the nodeList only supports "item". Regards, Nick. -- Nick Fitzsimons http://www.nickfitz.co.uk/ _______________________________________________ Javascript mailing list Javascript at lists.evolt.org http://lists.evolt.org/mailman/listinfo/javascript -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.evolt.org/pipermail/javascript/attachments/20070906/5ddedb7a/attachment.htm>