qwert: best guess is to use a "on blur" type Java event; adding this property to the desired textbox. Do a quick search here at tek-tips - nearly all of the java routines such as these have been discussed and there should be many examples to be found (you might also drop by tek-tips Java forum and get their opinion re: lost focus java events.
Just keep in mind that the onblur event will fire if focus is set on the textbox and you try to close the window, not only when you tab out of the control.
I am not a JS person, but if you call a function on the onblur event, then you can test for document close. I don't know if this is correct, but it seems to be logical.
Isadore: no, I haven't seen any workarounds. Depending on what you're trying to execute, I guess. I.e., if you try to validate an empty field and pop up an alert on blur, then it may become a mess - the alert will pop up every time you have a focus on the control but then deside to either close the window or move to another URL.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.