window.open in same frame?

Discussion in 'Javascript' started by rlo, Oct 31, 2004.

  1. rlo

    rlo Guest

    I have a test in a frame called FrameTest.htm. For the results there is a
    Javescriptfunction. When a button is clicked the function must work in the
    same frame. Now I use:
    var correctWin = window.open('','','top=0,left=0,scrollbars=yes');
    but a new window is openend, but I want to use the same frame.
    How can I change my script.
    Ronald.
     
    rlo, Oct 31, 2004
    #1
    1. Advertising

  2. rlo

    Randy Webb Guest

    rlo wrote:

    > I have a test in a frame called FrameTest.htm. For the results there is a
    > Javescriptfunction. When a button is clicked the function must work in the
    > same frame. Now I use:
    > var correctWin = window.open('','','top=0,left=0,scrollbars=yes');
    > but a new window is openend, but I want to use the same frame.
    > How can I change my script.


    Set the location property of the frame you want to change instead of
    trying to use window.open

    search the archives for "changing source of a frame"

    --
    Randy
    comp.lang.javascript FAQ - http://jibbering.com/faq
     
    Randy Webb, Oct 31, 2004
    #2
    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. Dan Kimhi
    Replies:
    0
    Views:
    529
    Dan Kimhi
    Feb 9, 2005
  2. Replies:
    1
    Views:
    182
    Anthony Jones
    Aug 29, 2006
  3. PC HUA
    Replies:
    2
    Views:
    470
    PC HUA
    May 19, 2004
  4. geefypants
    Replies:
    0
    Views:
    178
    geefypants
    Oct 28, 2004
  5. Replies:
    4
    Views:
    206
Loading...

Share This Page