This event occurs when the HTML object receives the mouse focus.


Example:

We don't want to allow that the fieldX to be changed and the mouse focus to go to another field displaying an alert message on the screen.

sc_set_focus(anotherfield);
sc_alert("Do not change this field");