javascript onbeforeactivate Description

Fires just before an object is to become the active object. Giving an object focus makes it active, but a rendered element can be the active element w