On Wed, May 14, 2008 at 12:37 AM, Blake <haswell00 at gmail.com> wrote: > link[i].setAttribute('onclick', 'swapStories(' + i + You can not set onclick using setAttribute. onclick is a javascript property. Try using the "link[i].onclick =" syntax See also: http://lists.evolt.org/archive/Week-of-Mon-20060821/184707.html (link within this post is dead and moved to: http://mattwarden.com/sandbox/eventlistener2.js) http://lists.evolt.org/archive/Week-of-Mon-20051017/176892.html http://lists.evolt.org/archive/Week-of-Mon-20040531/159765.html -- Matt Warden Cincinnati, OH, USA http://mattwarden.com This email proudly and graciously contributes to entropy.