Forum Moderators: open
For some it is a simple matter of adding "onBlur="self.focus()" in the body tag. But in other cases the popup already includes an onLoad function that places the focus in the first form field in the window. Adding the "onBlur" above overrides this.
Any ideas of how I can force the popup to stay on top yet continue to have the popup open up with focus in a specific field/element?
by focusing the element on the page, the window should receive focus as well
Seemed so to me too, but it doesn't quite work that way. The element does get the focus --thus, if I manually switch back to that window it comes up with the cursor in that field, even if it had been moved. But the window itself does not stay on top.
I'm thinking of forcing the focus back to the page (via onBlur="self.focus()" in the body), but adding a very brief delay after which the focus is shifted to a field in the form.
(Actually, that adds another wrinkle -- I would prefer the focus end up in whichever field the user was last editing, not necessarily the first field in the form.)