Send Us Your Feedback

AXURE 202 - Article 4: OnFocus and OnLostFocus Events

Overview

    1. OnFocus and OnLostFocus Events
    2. Sample Usage



1. OnFocus and OnLostFocus Events

The OnFocus and OnLostFocus events are available for the Text Field, Text Area, DropList, List Box, Checkbox and Radio Button. The OnFocus event occurs when the form widget is clicked or tabbed into. OnLostFocus occurs when the cursor leaves the form widget.


2. Sample Usage

OnFocus and OnLostFocus can be useful for showing or hiding dynamic information related to a form widget. OnLostFocus can also be useful to trigger data validation when the widget loses focus.