How to leave a frameset for opening a new frameset with a JavaScript

Discussion in 'Javascript' started by Stefan Mueller, Nov 7, 2005.

  1. I open my frameset (file 'index.html') with
    <frameset frameborder = "0" framespacing = "0">
    <frame src="page1.html" name="frame_1>
    <frame src="page2.html" name="frame_2>
    </frameset>

    With
    document.location.href = "page1-new.html";
    I can open a new page within the first frame.

    But how can I reload 'index.html'?

    With
    document.location.href = "index.html";
    the new frameset gets created within the first frame.

    Stefan
     
    Stefan Mueller, Nov 7, 2005
    #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. Replies:
    0
    Views:
    808
  2. POL8985
    Replies:
    1
    Views:
    691
    Kevin Spencer
    Jan 31, 2005
  3. ck388
    Replies:
    1
    Views:
    748
    ck388
    Sep 24, 2003
  4. Replies:
    2
    Views:
    698
  5. Weston
    Replies:
    1
    Views:
    218
    Weston
    Aug 10, 2007
  6. Replies:
    2
    Views:
    786
    Thomas 'PointedEars' Lahn
    Mar 11, 2008
  7. Oliver Klozov
    Replies:
    6
    Views:
    592
    Gene Wirchenko
    Aug 21, 2012
  8. Oliver Klozov
    Replies:
    3
    Views:
    478
    markspace
    Aug 20, 2012
Loading...