# Metadata
Platforms: desktop, server, mobile OS: mac, windows, linux, ios, android Introduced: 1.0 Security:
# Syntax
focusOut
# Examples
on focusOut -- if you set the textStyle on focusIn, use a handler like this -- handler to remove the styling when the control loses focus set the textStyle of the target to empty end focusOut
# Description
Handle the focusOut message if you want to perform preparation or do other tasks when a control loses the focus.
If the control is an unlocked field or a button whose menuMode is "comboBox", the closeField or exitField message is sent to it instead of the focusOut message.
# Tags
ui,
# See
- **keyword:** field - **message:** exitField, suspendStack, closeField - **command:** focus - **object:** button - **glossary:** message, control, focus