1.

Solve : HTML button Frame linking?

Answer»

I have 3 frames on my web page 1 frame is for the heading another is on the side for the menu and a 3rd frame is for display. I WOULD like so that when I click on one of my HTML buttons on the menu I want the page to display in the frame next to it. My code for the buttons look like this.
Code: [Select]<td align="center"/>
<form method="LINK" action="about.html">
<input type="submit" name="about" value="About Us" style="width: 110px"/>
</form>
<form method="link" action="home.html">
<input type="submit" name="home" value="Home"style="width: 110px"/>
</form>
<form method="link" action="email.html">
<input type="submit" name="email" value="Email"style="width: 110px"/>
</form>
<form method="link" action="rates.html">
<input type="submit" name="Rates" value="Rates"style="width: 110px"/>
</form>
<form method="link" action="pictures.html">
<input type="submit" name="Photo" Value="Photos"style="width: 110px"/>
</form>
<form method="link" action="indoor.html">
<input type="submit" name="indoor" value="Indoor Jobs"style="width: 110px"/>
</form>
<form method="link" action="outdoor.html">
<input type="submit" name="outdoor" value="Outdoor Jobs"style="width: 110px"/>
</form>

When I click my buttons right now the frame my menu is in changes instead of the frame next to it I'm new to HTML buttons I ussually just use
Code:
[Select]<html>
<head>
<frameset ROWS="200,*">
<!-- LOGO -->
<frame src="mister.html" scrolling="no"/>
<!-- Nested Frames -->
<frameset cols="180,*">
<!--Lists of links-->
<frame src="links.html" scrolling="no"/>
<!--Home Page-->
<frameset cols="900,*">
<frame src="home.html"/>
</frameset>
</frameset>
</frameset>
</head>
</html>

I'd like the link buttons to open up in the frame labeled home.html any help I'd appreciate.Hi rockstar4cs!

To solve your problem you must provide name for each frames like the following code (FROM ORIGINAL):





name="frame1" src="mister.html" scrolling="no"/>



name="frame2" src="links.html" scrolling="no"/>


name="frame3" src="home.html"/>






After giving name for each frame modify your forms as shown below:

target="frame3">



I think this will solve your problem.

Jugal boro
[link removed - do not advertise]



Discussion

No Comment Found