detaches the specified event handler
var myPop = new dhtmlXPopup(...); var evId = myPop.attachEvent("onContentClick", function(){ alert("You have just clicked on the op-up content")}); myPop.detachEvent(evId);