set the focus of a popup window everytime

Posted by hunt on Stack Overflow See other posts from Stack Overflow or by hunt
Published on 2010-06-03T12:09:51Z Indexed on 2010/06/03 12:14 UTC
Read the original article Hit count: 263

Filed under:
|

I have two pages one.html and two.html

i am opening a new window using following code //here popup is a global variable

popup=window.open('two.html','two');

for the first time a popup window open successfully and get the focus but if i try to open it again without closing already opened popup then two.html is not getting focus for the second time.

note: i have set popup window's name as 'two'

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about popup