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

Share This Page