i want to change the onclicks of two elements. In Firefox this code does what it should:
var tmpButton = button1.onclick;
button1.setAttribute('onclick', button2.onclick);
button2.setAttribute('onclick', tmpButton);
But how can i realize this code in IE ?