I\'m trying to pass a parameter in the onclick event. Below is a sample code:
or you could use this line:
link.setAttribute('onClick', 'onClickLink('+i+')');
instead of this one:
link.onclick= function() { onClickLink(i+'');};