determine if javascript blur/focusout event is from selecting flash or leaving browser
Posted
by jedierikb
on Stack Overflow
See other posts from Stack Overflow
or by jedierikb
Published on 2010-03-19T20:25:40Z
Indexed on
2010/03/19
20:31 UTC
Read the original article
Hit count: 514
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?
© Stack Overflow or respective owner