onContentClick
Click on popup
<meta charset="UTF-8"> <link rel="stylesheet" type="text/css" href="../../../dhtmlxToolbar/codebase/skins/dhtmlxtoolbar_dhx_skyblue.css"/> <link rel="stylesheet" type="text/css" href="../../codebase/skins/dhtmlxpopup_dhx_skyblue.css"/> <script src="../../codebase/dhtmlxcommon.js"></script> <script src="../../../dhtmlxToolbar/codebase/dhtmlxtoolbar.js"></script> <script src="../../codebase/dhtmlxpopup.js"></script> <style> #myToolbar { margin: 10px; } #eLog { height: 200px; overflow: auto; border: 1px solid #cecece; font-size: 11px; font-family: Tahoma; margin: 100px 10px 10px 10px; width: 400px; padding: 2px; } </style> <script></script> <style> </style> <div id="myToolbar"></div> <div id="eLog"> <br>Click on popup<br> </div>var myToolbar; var myPop; var eLog; var eCount = 0; function doOnLoad() { myToolbar = new dhtmlXToolbarObject("myToolbar", "dhx_skyblue"); myToolbar.setIconsPath("../common/imgs/"); myToolbar.loadXML("../common/toolbar.xml?etc=" + new Date().getTime(), function() { myToolbar.setItemText("workbut", "List"); myPop = new dhtmlXPopup({ toolbar: myToolbar, id: "workbut" }); myPop.attachHTML("Click popup to trigger onContentClick event"); myPop.attachEvent("onContentClick", function() { logEvent("onContentClick"); myPop.hide(); }); }); eLog = document.getElementById("eLog"); } function logEvent(name, itemId, itemModel) { eLog.innerHTML = (++eCount) + ": event fired: " + name + "<br>" + eLog.innerHTML; eLog.scrollTop = 0; }