window.opener.focus() does not work in firefox.Any workaround?

kowdyersazbs17

New Member
i am calling the parent page javascript function from child window with below code to display alert onparent page and then closes the child window\[code\] window.opener.CallAlert("test is"+test); window.opener.focus(); self.close();\[/code\]what happening is alert comes on parent window but focus remains on child window in firefox. user needs explicitly go to parent window .Though it works like charm on IE,ChromeEverything is fine but I want the to focus on parent window once i call the window.opener.CallAlert() from child window.Any workaround for this (if i can hide child window something like this)?I tried solution suggested at window.opener.focus() problem in FF5+ (Tools->Options->Content->Advanced... (in "Enable JavaScript" row)->Check "Raise or lower windows") but that does not work too
 
Back
Top