Button is classic representative of control group and we've made a resolve to consider it individually.
The following attributes are available for the button:
Pretty often, developers face the following situation: the user clicks the button - some action is executed.
So lets make it out.
Add event to a button you can with the following codelines:
<div id="formObj" style="position: relative; width: 250px;"></div> .... var myForm = new dhtmlXForm("formObj"); var myEvent = myForm.attachEvent(onButtonClick, function(){ alert("Hello,world!") });
Where:
And delete this event detachEvent() method helps.
myform.detachEvent(myEvent);