In this page there\'s a way to dynamic add html (textbox,input button and radio elements with javascript
my questioon is how can i add an event to the button, imagi
Probably the easiest cross-browser way is to set the event name as a property of the element:
Element.onclick = function () { // do something... } Element.onmouseup = function () { // do something else... }