This solution works for me.

Maybe somebody will  need it.

Method onloadHandler()  is  in custom text control class.


ClientMethod onloadHandler() [ Language = javascript ]
{

var comp this;
var elem this.findElement('control');

elem.addEventListener('click', function(){
        comp.someMethod();
    });
    
}