Hey guys,
I'm not sure if this is doable. I pop a window, and I want that window to maintain focus until the user closes it. I can keep the window in focus, but the problem is that it contains a form, and if the user starts filling out the form the window thinks it has lost focus, and tries to refocus itself.
This is bad because my drop downs clear out while a user is making a selection.
I've search a great deal, but can not seem to find a way to detect the status of a window's focus. It would be great if I could say:
if (window.isNotFocused) {
window.focus();
}
But no such property exists. How, or is there a way to do what I'm trying to do? Thanks.
I'm not sure if this is doable. I pop a window, and I want that window to maintain focus until the user closes it. I can keep the window in focus, but the problem is that it contains a form, and if the user starts filling out the form the window thinks it has lost focus, and tries to refocus itself.
This is bad because my drop downs clear out while a user is making a selection.
I've search a great deal, but can not seem to find a way to detect the status of a window's focus. It would be great if I could say:
if (window.isNotFocused) {
window.focus();
}
But no such property exists. How, or is there a way to do what I'm trying to do? Thanks.