DHTMLX Docs & Samples Explorer

attachEvent(evName, evHandler)

Attaches event to dhtmlxForm instance.

Parameters:

  • evName - the event name;
  • evHandler - a user-defined handler that will be called when event occurs.
var myEvent = myForm.attachEvent("onChange", function(){
   // code here
});

Description:

  • several handlers can be attached to one and the same event, and all of them will be executed.
  • event names are case-insensitive.

See also: