Hi,
elementControl.setAttribute( 'onchange', 'alert('AHHHHH');' );
elementControl.onchange = function() { alert("AHHHHH"); }
elementControl.setAttribute('id', currentControlName);
setAttribute ist im IE von obigem abgesehen oft problematisch, sollte vermieden werden.
elementreferenz.eigenschaft = wert;
tut's i.d.R. genauso.
MfG ChrisB
--
„This is the author's opinion, not necessarily that of Starbucks.“
„This is the author's opinion, not necessarily that of Starbucks.“