Comment

RCA

newlink.setAttribute('onclick', 'myHandle(this)');

Parent comment

Anonymous

how to set onclick event?