Event Handlers

I have a question about event handlers, for example, the onSelectionChange element for a ComboBox.



How can I know which object, ie which Combo Box triggered that particular change? I would like to have a page with multiple (in fact, an unknown number) of combo boxes, each with the exact same change event. The event will have to know of course which Combobox was in-fact changed.



As you can see, in this situation, it will be undesirable to have each Combo box have it’s own, otherwise identical onchange event.



Thanks


“this” inside event handler is combo object:


combo1.attachEvent(“onSelectionChange”,doOnSelect);

comboN.attachEvent(“onSelectionChange”,doOnSelect);

function doOnSelect(){
alert(this.getComboText())
}