Required library edition:
Required library file: dhtmlxfolders.js
adds any user-defined handler to available events
myFolders.attachEvent("onclick",function(id){ alert("Item ID is: "+id) })
Several handlers can be attached to one and the same event, and all of them will be executed. Note: the names of the events are case-insensitive.