I create several instance of a generic window and all of them have an event handler for their close event. How can I get their ID
or Name
in this event?
Something like:
var name = this.wrapper.name();
You can get window element ID with this code
function onClose(e) {
var sender = e.sender,
id = sender.element[0].id;
}