loading a page in a frame

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Max

    loading a page in a frame

    I have a webpage with 3 frames. Title, Content and MainPage.
    I have created buttons in the content frame as follow.
    <input type="button">
    I would like to be able to click on the button and another page loads in the
    Frame "MainPage".
    I have tried the following:
    <input type="button" onClick="window .location ='anotherPage.h tml'
    target=main> and
    <a href="anotherpa ge.html"><input type="button"></a>
    This does not work. Would anybody know the right code to achieve what I want
    to do.

    thanks

    Max


  • Greg Griffiths

    #2
    Re: loading a page in a frame

    You need to name the frame that it is going to, for example using the following
    frameset with a frame called LEFT and RIGHT, I can add a link into the contents
    of the LEFT frame as follows :

    <a href="newFile.h tml" target="RIGHT"> load new file in frame RIGHT</a>



    Max wrote:
    [color=blue]
    > I have a webpage with 3 frames. Title, Content and MainPage.
    > I have created buttons in the content frame as follow.
    > <input type="button">
    > I would like to be able to click on the button and another page loads in the
    > Frame "MainPage".
    > I have tried the following:
    > <input type="button" onClick="window .location ='anotherPage.h tml'
    > target=main> and
    > <a href="anotherpa ge.html"><input type="button"></a>
    > This does not work. Would anybody know the right code to achieve what I want
    > to do.
    >
    > thanks
    >
    > Max[/color]

    Comment

    Working...