Restoring the opened window reference

Discussion in 'JavaScript' started by elias.chacon, May 18, 2007.

  1. #1
    Hello.

    On my site, there is a button that open a popup window with a flash chat plugin.

    When I click on this button again it call the opened window to open a new tab with another plugin without refresh.

    But, if I refresh the opener window, the popup reference is broken. And when I try to open a new tab, the opened window exists, but not it's instance, then, the popup content is refreshed.

    My solution on FireFox is:
    if ( !navigator.newWindow)
    navigator.newWindow= window.open.( "content.html", "popup");

    It restores the opened window reference.

    But it doesn't work on another browsers...
    Could someone help me?
     
    elias.chacon, May 18, 2007 IP
  2. elias.chacon

    elias.chacon Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Please don't consider the period between open and the bracket.
     
    elias.chacon, May 21, 2007 IP