loading a page in a frame

M

Max

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.html'
target=main> and
<a href="anotherpage.html"><input type="button"></a>
This does not work. Would anybody know the right code to achieve what I want
to do.

thanks

Max
 
G

Greg Griffiths

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.html" target="RIGHT">load new file in frame RIGHT</a>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top