Chris, Eureka!! Here is my final code. Thanks for you help with this. The alert only ever happens once when selecting many at once. ----------------------- var currentlink; function refresh(linkname) { if (currentlink == linkname) { alert(linkname+"|"+currentlink); currentlink="ERROR"; } } function changedest(dest,type) { currentlink=dest; setTimeout("refresh('"+currentlink+"')",2500); } -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 497 bytes Desc: not available URL: <http://lists.evolt.org/pipermail/javascript/attachments/20040520/73d28baf/attachment.bin>