B
Barry Svee
I'm struggling with the JavaScript blur event. I have an activex
control that I need to interact with when a window loses focus, namely
to instruct it to give up control of a barcode scanner so that the
application being brought foreward can take control.
It has been my observation that when I set the window.onblur function,
the window will gain focus and then immediately lose focus (blur) to
the first field, button, or whatever that is contained within the
window. I can observe a text field gaining and losing focus as I
switch between applications but its parent window will *never* receive
any blur events as I switch between applications, so long as the
cursor remains in the text field.
Is there any way with JavaScript to know when the user is switching
focus from the browser window to some other application without having
to code logic into every friggin field on the page?
Barry
control that I need to interact with when a window loses focus, namely
to instruct it to give up control of a barcode scanner so that the
application being brought foreward can take control.
It has been my observation that when I set the window.onblur function,
the window will gain focus and then immediately lose focus (blur) to
the first field, button, or whatever that is contained within the
window. I can observe a text field gaining and losing focus as I
switch between applications but its parent window will *never* receive
any blur events as I switch between applications, so long as the
cursor remains in the text field.
Is there any way with JavaScript to know when the user is switching
focus from the browser window to some other application without having
to code logic into every friggin field on the page?
Barry