Javascript Reference
Events > onbeforedeactivate
javascript onbeforedeactivate Description
Fires just before an object is about to yield activation to another object because the user clicked on another element, tabbed to another element, or

Powered by Linode.