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...
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
<SCRIPT LANGUAGE="JavaScript">
<!--
parent.FRAMENAME.location=
//-->
</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>
<BODY>
<SCRIPT LANGUAGE="JavaScript">
<!--
parent.FRAMENAME.location=
//-->
</script>
...whatever code you have more....
</BODY>
ASKER
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 the body tag of file1.htm, something like:
load(file2.htm) target(MySecondFrame)...
Reload parent Frame.
ASKER
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 the body tag of file1.htm, something like:
load(file2.htm) target(MySecondFrame)...
in frame1.htm :
<BODY OnLoad="parent.FRAMENAME.l ocation='f ile2.htm'; ">
perhaps?
<BODY OnLoad="parent.FRAMENAME.l
perhaps?
ASKER
that was exactly what I was looking for!
propose answer again so that I can reward you!
propose answer again so that I can reward you!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
<A HREF="next.html" TARGET="content">Click</A>
Is that what you are looking for ?