help with frontpage

JOHNGALT99

Senior member
Mar 26, 2001
431
0
71
Yes i know i should learn html but i havent yet so i use frontpage

my question is i am building a website with three frames (frame 1), one on the left side verticle, one frame across the top (frame 2) and a frame below the top and next to the left side one ( frame 3).

what i want to do is put hyperlinks in the left frame (frame 1) that when clicked only change the frame below the top and next to the left side one (frame 3).

However when i try and do this and pick the target frame, then click the hyperlink the whole page goes to the specified html file rather just changing frame 3

thanks for the help
 

WillyF1uhm1

Senior member
Aug 10, 2001
407
0
0
I think you have to use javascript to do that.

In your page with links, put this:

function loadFrames(framename,urlname)
{
top.frames[framename].location = urlname;
}

between the <HEAD> and</HEAD>

And replace your links with:
<a href="javascript:loadFrames('thenameoftheframe','thenameoftheurl')">
Go to this page
</a>

example:
The frame you want to show the page in, is named 'content' and the page is 'updates.html' , then the link would be something like:
<a href="javascript:loadFrames('content','updates.html')">
Updates of this site
</a>