FrameActivate Event
The FrameActivate event is triggered when a frame changes from an inactive to an active state. This change occurs when a user selects an inactive frame with the mouse, or navigates to it using the keyboard interface. This event can be used, for example, to provide visual effects to an active frame. The frame being activated can be either a normal frame or a frame that has been minimized to an icon.
on frameactivate [compositefieldname]
compositefieldname is optional if you specify this event in a field script for a composite field.