How do I get the target in javascript?

I’m trying to get the target in a mouseevent.
I seem not able to use addEventListeners?

all I get is htmlacanvasobject and object Object.

This is my code so far, now where is my buttontarget?


    for(var i=0; i< buttonArr.length;i++)
    {
        //alert("more");
        buttonArr*.id = i;
        buttonArr*.on('mouseup', function(evt){
            alert("target: " + evt.target);
            alert(this);
        });
    }