Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Refreshing to a target frame

Status
Not open for further replies.

seanbo

Programmer
Jun 6, 2003
407
0
0
GB
i have a frames page with two frames - 'bottom' and 'top'. my default, the 'top' frame contains 'main.htm', and the 'bottom' frame contains 'main2.htm'. these three files, and one called 'test.htm' are all in the same folder.

i want to know how to get the top frame (main.htm) to load test.htm into the 'bottom' frame. at the moment i have this code in main.htm:

<html>

<head>
<META HTTP-EQUIV=&quot;Refresh&quot; CONTENT=&quot;1; URL=test.htm; TARGET=bottom&quot;;>
<title>frame test</title>
<base target=&quot;bottom&quot;>
</head>

<body>
<p>top frame</p>
</body>

</html>

this seems to make test.htm appear in the 'top' frame. what do i need to do?

____________________________________________________
If you like a post, show you care by giving it a <censored>.
 
seanbo,

Just add
Code:
TAGRET=&quot;main&quot;
to your links (in your top frame). Like this:

Code:
<A HREF=&quot;test.htm&quot; TARGET=&quot;bottom&quot;>Test me</A>

Good luck §;O)


Jakob
 
... sorry! it should read
Code:
TARGET=&quot;
Code:
bottom
Code:
&quot;
both places §;O)
 
i don't want to create a hyperlink. i want it to be automatic. when a page appears in the top frame, i want it to change the page in the bottom frame.

____________________________________________________
If you like a post, show you care by giving it a <censored>.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top