onfocus javascript for

Dear all,

I have a button like this :

mainViewLayout.addComponent(new Button(),'button');

javascript action just only action for onClick, is there any ways to call script action for focus on div ?

thankyou very much[b]

[/b]