Event occurs when user clicks button
Parameters of event
myform.attachEvent("onButtonClick", function(name){ // any custom logic here });
Example of init
... {type: "button", name: "btn2", value: "Submit"} ...