⬅︎ Back to createElement('a') with a javascript href
I had a problem getting the onclick to work in IE when created with setAttribute. I used this and it worked:newlink.onclick = function (e) { myHandle(this); }
Comment
I had a problem getting the onclick to work in IE when created with setAttribute. I used this and it worked:
newlink.onclick = function (e) { myHandle(this); }