Link to home
Start Free TrialLog in
Avatar of jonassondaniel
jonassondaniel

asked on

Frames

I have made a page built of frames and need to change the contents of a certain frame when loading a .html file into another. I know it can be done by adding something to the body tag but I don't remember what...
Avatar of siabod
siabod

In your <A HREF=".." ....> tag you can place the command TARGET="framename"

<A HREF="next.html" TARGET="content">Click</A>

Is that what you are looking for ?
Avatar of jonassondaniel

ASKER

I know this but I'm looking to load a .html file (file2.htm) into a frame when opening another .html file (file1.htm). I did this a couple months ago by adding something inside the body tag of the file1.htm file... Hmmm I really don't know how to explain it in another way :-( I hope that someone will understand what I mean.
You mean this ?

<SCRIPT LANGUAGE="JavaScript">
<!--
   parent.FRAMENAME.location='file2.htm';
//-->
</script>

within the <BODY>..</BODY> tags, then file2.htm will be loaded at the place of FRAMENAME

Forgot to add...this must be done in file1.htm

<BODY>
<SCRIPT LANGUAGE="JavaScript">
<!--
   parent.FRAMENAME.location='file2.htm';
//-->
</script>

...whatever code you have more....

</BODY>
I want to do this without using a java script...
In the body tag of file1.htm, something like:
load(file2.htm) target(MySecondFrame)...
Reload parent Frame.

I want to do this without using a java script...
In the body tag of file1.htm, something like:
load(file2.htm) target(MySecondFrame)...
in frame1.htm :
<BODY OnLoad="parent.FRAMENAME.location='file2.htm';">

perhaps?
that was exactly what I was looking for!
propose answer again so that I can reward you!
ASKER CERTIFIED SOLUTION
Avatar of siabod
siabod

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial