I have something like this in a JavaScript control, how does one subscribe to this event?
if(typeof(pnlDialog.onclose) == 'function')
pnlDialog.onclose();
I thought it was something like this, but haven’t been successful.
var mycontrol = document.getElementById('myDialog');
mycontrol.attachEvent('onclose', function()
{
alert('closed');
});
Looks like it’s not using events at all, its just using a late bound function. Therefore use this: