How to get the name of the currently selected button name?

hi,
I set the tabIndex for buttons. i want get the button name of the currently selected button. plase help me.