By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,947 Members | 1,505 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,947 IT Pros & Developers. It's quick & easy.

loading a page in a frame

P: n/a
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
Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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>

Max wrote:
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


Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.