tab.setFocus (Client API reference)

Sets the focus on the tab.

Syntax

tabObj.setFocus();

formcontext.ui.tabs