dhtmlxEvent
Similar to other JavaScript libraries, DHTMLX also has its own method to attach HTML DOM events to the HTML DOM elements. It takes three arguments; the first being the DOM element, the second being the HTML DOM event name without the "on" prefix, and lastly the handler. We will be using this to load each of the application parts on the page load:
dhtmlxEvent(window,"load", function(){ // Code to be run on page load });
All events in DHTMLX when added to the same event for the same object are added to an internal array that will be fired in the order it was added.