Popup

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

  1. #1
    Hello.
    Is it possible to maintain an instance of a popup window on a memory and reclaim it later if I refresh the generator window?

    Because if I do this:
    var newW = window.open ( "anotherpage.html", "myPopup" );
    Code (markup):
    I will maintain the linkage between generator and popup only wile the generator exists.
     
    elias.chacon, May 22, 2007 IP
  2. RECEP

    RECEP Well-Known Member

    Messages:
    1,855
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    195
    #2
    where will we put these codes?
     
    RECEP, May 22, 2007 IP
  3. elias.chacon

    elias.chacon Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Ok.
    But I can do this on FireFox:

    
    if ( !navigator.newW ) 
        navigator.newW = window.open ( "mycontent.html", "myPopup" );
    
    Code (markup):
    And it works very well. It maintains the reference even i refresh the generator. But it doesn't work on the other browsers.
     
    elias.chacon, May 22, 2007 IP