You can attach several handlers to the same event and detach them using two respective methods:
attachEvent() - to attach event
var myEvent = myPop.attachEvent("onClick", function (id){
//event handler code
})
detachEvent() - to detach event
myPop.detachEvent(myEvent);
onClick - fires when the user clicks on an item of the inner list attached through the
attachList method.
-
onShow - fires when the pop-up window shows.
onHide - fires when the pop-up window hides.