Refocusing on a different window without losing form data?

Discussion in 'Javascript' started by MartyNg, Sep 21, 2006.

  1. MartyNg

    MartyNg Guest

    I've never stumbled into this before. From Window A, I am using
    window.open to open Window B. Window B has a form with lots of
    elements. If the user loses focus of Window B somehow, and they click
    the link on Window A to open Window B, all the form data is lost on the
    refocus. I could have sworn I had this working before with the same
    code. Do I have to conditionally check to see if Window B is already
    open? (That way, I could just focus on Window B instead of reopening.

    <a href="javascript:void(0);" onClick="var testWin =
    window.open('testFormPage.asp?numItems=10','LocationWin','');
    testWin.focus();">Open test form in new window</a>
     
    MartyNg, Sep 21, 2006
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. AD
    Replies:
    1
    Views:
    1,169
    Francis Shanahan
    Aug 23, 2003
  2. Matt
    Replies:
    1
    Views:
    3,363
    Whitecrest
    Jun 1, 2004
  3. Replies:
    2
    Views:
    6,643
  4. Kevin DeValck
    Replies:
    1
    Views:
    1,053
    7stud --
    May 17, 2011
  5. Vijay Kumar
    Replies:
    1
    Views:
    197
    F. Da Costa
    Jan 9, 2004
  6. Matt
    Replies:
    0
    Views:
    378
  7. Replies:
    2
    Views:
    554
  8. Jason C
    Replies:
    4
    Views:
    890
    Morty Abzug
    Jun 26, 2012
Loading...