The setAction method defines the JavaScript action of the field for specific trigger.
setAction(System.String cTrigger, System.String cScript);
cTrigger
Trigger for the action: MouseUp, MouseDown, MouseEnter, MouseExit, OnFocus, OnBlur, Keystroke, Validate, Calculate or Format.
cScript
JavaScript code
Member of field.