Download This Plugin
Back To jQueryScript.Net
jQuery winFocus Plugin Demo
Check out the console log.