WebUIControl.SetFocus
From Xojo Documentation
Method
Sets the focus to the Control.
Sample Code
This code checks for a required value when a button is pressed:
Sets the focus to the Control.
This code checks for a required value when a button is pressed: