how to display javascript window again when refreshing the page

Discussion in 'JavaScript' started by ziya, Apr 3, 2010.

  1. #1
    I have a link on page click here.. when user click it , it open a javascript window, and he is doing some stuff there.. ( clicking on button , searching etc. all these happen in a window created by javascript )

    But when i refresh the page , everything shuts down. All windows close. user have to click the link to open the window .

    Is there a way to avoid this ?

    Thanks
     
    ziya, Apr 3, 2010 IP
  2. ChosenOnes.net

    ChosenOnes.net Peon

    Messages:
    40
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can either make this a pop-up window

    OR

    Save whatever the person does in a cookie, and when the page refreshes, the server-side script reads the cookie and writes an onload function.

    There are probably other solutions as well.
     
    ChosenOnes.net, Apr 4, 2010 IP