(i)frames

liunx

Guest
I have a page (page1.html) that has an iframe in it, this is the code:<br />
<br />
<IFRAME SRC=http://www.htmlforums.com/archive/index.php/"page2.html" WIDTH="300px" HEIGHT="300px" FRAMEBORDER="0"></IFRAME><br />
<br />
My question is, is there an HTML tag that I can use in page1.html in which the contents of page2.html can be put into a frame in page1.html so there won't be a need for the page2.html. It will all be stored in page1.html but in a seperate frame. For example, something like<br />
<br />
<FRAME WIDTH="300px" HEIGHT="300px" FRAMEBORDER="0"><br />
this is where the contents of page2.html will be<br />
</FRAME><br />
<br />
Can this be done? Thank you in advance.<!--content-->is what you mean that when you click on a link in page1 to go to page2 it opens it up in the iframe? if so just add a target to the iframe in your link, ie:<br />
<a href=http://www.htmlforums.com/archive/index.php/"page2.html" target="inside_frame"<br />
<br />
ofcourse for this to work you have to asign your iframe a name, ie:<br />
<br />
<iframe src=http://www.htmlforums.com/archive/index.php/"page2.html" name = "inside_frame"<br />
<br />
note if in your index you have the iframe source as page2 it will automatically load page2 into the iframe without you having to click on a link :)<!--content-->Hi leoo24, thanks for your reply. What I mean is something like the frame found on this page<br />
<!-- m --><a class="postlink" href="http://www.zenofreak.blogspot.com">http://www.zenofreak.blogspot.com</a><!-- m --><br />
<br />
I looked at the source code and can't quite figure out how to do it. What I want to do is paste ALL the contents of page2 into that frame, thus eliminating the need of having 2 pages because everything will be in page1.<br />
<br />
THANKS.<!--content-->right, ok the basis of a frame is that a page is being loaded into another page, so there are still two pages!! just you don't change pages to get to page2 because page two is loaded into the iframe, if that makes it any easier to understand.<!--content-->
 
Back
Top