HTML frames

I've three frames in an html file aligned top, left and right. I've three links on the left frame and want to change the html file on the right frame on the click event of the links on the left frame. I've succedded in getting the index of the link clicked but can't replace the file in the right frame.
How can I replace the file.

Thanks in advance.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

in ur frames html, each frame wuld have been given a name. if not do it. then in the link html add target="framename" that way, the link opens up in a frame with name 'framename'.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
m_adilAuthor Commented:
>> then in the link html add target="framename"

can't understand this

for your refference here is the frame file

<Frameset rows="20%,80%" frameSpacing=0>
<Frame name="topFrame" src="top.htm"  noresize scrolling=no   frameborder=0 bordercolor=#778899>

<Frameset cols="20%,80%" frameSpacing=0>
<Frame name="leftFrame" src="menu2.htm"  noresize scrolling=no frameborder=0 bordercolor=#778899>
<Frame name="rightFrame" src="intro.htm"  noresize scrolling=no  frameborder=0 bordercolor=#778899>

and this is the file used to load file in right frame

<Form name="Form1" action="" method="Post">

<Table Border="0" CellSpacing="0" CellPadding="0" >
<Td Width="131" Height="36">
<a href="javaScript:hello()">
<Img Src="images2/b1.gif" Border="0" Height="36" Width="131" Name="menu1" Alt="Contact us">

<script language="JavaScript">
function hello()
if (n==1)
// load 1st file
else if (n==2)
// load 2nd file

m_adilAuthor Commented:
sorry for typing error
read <a href="javaScript:hello()"> as
<a href="javaScript:hello(1)">

and function hello() as
function hello(n)
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

u dont need javascript at all...
<a href="filename" target="rightFrame"><img ...></a>
and so on for your links..
in this way the link will open up in the rightFrame.
m_adilAuthor Commented:
got it.
Thanks alot
This question was awarded, but never cleared due to the JSP-500 errors of that time.  It was "stuck" against userID -1 versus the intended expert whom you awarded.  This corrects that and the expert will now receive these points, all verified.
Moderator @ Experts Exchange
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.