determine if javascript blur/focusout event is from selecting flash or leaving browser
- by jedierikb
In IE when I select flash, document.onfocusout is fired.
When this event is fired, I would like to distinguish between selecting flash and leaving the browser. When I handle the callback, document.activeElement is the previous html element with focus (what I just left), so this is not helpful for solving this problem. Clearly there has been a change in focus to warrant calling the blur method -- is this information available somewhere?
Or is there a better way to do this?