DHTMLX Docs & Samples Explorer

onContentClick

fires when the user clicks on the pop-up content

myPop.attachEvent("onContentClick",function(){
      alert("You have clicked on the pop-up window) 
})