Forum LAMS for Tech-Heads - General Forum: Not able to focus already opened popup window in Firefox and safari


 
You may request notification for Not able to focus already opened popup window in Firefox and safari.
Search: 

1: Not able to focus already opened popup window in Firefox and safari
01/01/09 06:15 AM
[ Reply | Forward ]
1. Create an html page (FirstPage.html) with a button
On Button click - call a javascript to open an another page (SecondPage.html) using window.open().

2. Onloading of SecondPage.html, open an another popup window var windowHandle = window.open("ThirstPage.html,',');
(ThirdPage.html) using window.open. Now the thirdwindow will open, also i set it this windowHandle.focus().
At the same time i closed the SecondPage.html.

Now i have only 2 windows, (FirstPage.html, ThirdPage.html). and It is focused in ThirePage.html as expected.

3. The problem is here, again i clicked on a button in FirstPage.html, it is opening again an another window having ThirdPage.html Content instead of focusing the existing ThirdPage.html (2nd window).

Please provide any ideas or technical help regarding this focus() issue in firefox and Safari. It is working in IE.

Selvaraj

Posted by Selvaraj Durairaj

Reply to first post on this page
Back to LAMS for Tech-Heads - General Forum