⬅︎ Back to createElement('a') with a javascript href
newlink.setAttribute('onclick', 'myHandle(this)');
how to set onclick event?
Comment
newlink.setAttribute('onclick', 'myHandle(this)');
Parent comment
how to set onclick event?