molily: dynamisch erzeugter Button arbeitet nicht im IE

Beitrag lesen

newlinebutton.setAttribute('OnClick',"alert('hallo');");

http://redaktion.selfhtml.org/selfhtml-preview/javascript/einbindung.html#fehler-code-als-string

newlinebutton.onclick = function () {
   alert("hallo");
};

Mathias