H
hforman1
The parent window has a button that opens the child window AND submits
a form on the parent window. The child window opens, but the parent
window reloads on top of it. I want the child window to have focus.
I've tried this function on the parent page:
function MM_focusWindow(theURL,winName,features) {
var popUpWin = open(theURL,winName,features);
popUpWin.focus()
}
I call the function from the body tag of the parent window using the
OnLoad event. It only seems to work if the child window is already
open, i.e. when the button is clicked more than once.
Can anyone suggest how I can give the child focus?
Thanks!
a form on the parent window. The child window opens, but the parent
window reloads on top of it. I want the child window to have focus.
I've tried this function on the parent page:
function MM_focusWindow(theURL,winName,features) {
var popUpWin = open(theURL,winName,features);
popUpWin.focus()
}
I call the function from the body tag of the parent window using the
OnLoad event. It only seems to work if the child window is already
open, i.e. when the button is clicked more than once.
Can anyone suggest how I can give the child focus?
Thanks!