> > I've tried about half a dozen methods of setting the attribute but > > none of them has worked for both IE and Moz. Could anyone help me??? Thanks very much to .jeff and Danny. I went with elem.onclick in the end, which seems to work a treat. Cheers! Mike www.donotremove.co.uk