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. Advertising

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. Victor Garcia Aprea [MVP]

    Re: Losing Form data

    Victor Garcia Aprea [MVP], Jun 25, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    900
    Victor Garcia Aprea [MVP]
    Jun 25, 2003
  2. AD
    Replies:
    1
    Views:
    1,038
    Francis Shanahan
    Aug 23, 2003
  3. Replies:
    2
    Views:
    6,170
  4. Vijay Kumar
    Replies:
    1
    Views:
    125
    F. Da Costa
    Jan 9, 2004
  5. Jason C
    Replies:
    4
    Views:
    673
    Morty Abzug
    Jun 26, 2012
Loading...

Share This Page