close other HTML window by javascript function

Posted by lusey on Stack Overflow See other posts from Stack Overflow or by lusey
Published on 2010-05-31T10:20:28Z Indexed on 2010/05/31 10:22 UTC
Read the original article Hit count: 298

Filed under:
|
|

hello

i need a popup window to appear to the user but without parent widow !

but this is impossible

so i think that I may have to make the popup close the parent apter it appear, but how ?

i tried this in the popup:

<BODY align="center" valign="center" onload="javascript:window.opener='x';window.close();">

but it closed the popup window itself !

any idea to make the popup close its parent ?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about popup