load pages into iframes

liunx

Guest
Well now that I designed my complete homepage with iframes, I have one simple problem : <br />
I need to link a page into an existing iframe, by a simple hyperlink. I read something about giving as target the name if the iframe, but this doesn't work.<!--content-->I dont know if I understand you right but the page that is supposed to be shown in the iframe is referenced using the src attribute in the iframe tag. I.e. <iframe src=http://www.htmlforums.com/archive/index.php/"the_page_you_want_to_load_in_the_iframe.html"<br />
<br />
If this page contains a link to another page that is suppoded replace the first page in the iframe y simply call it <a href=http://www.htmlforums.com/archive/index.php/"replacing_page.html" target="_self"><!--content-->Like this:<br />
<br />
<a href=http://www.htmlforums.com/archive/index.php/"http://www.yahoo.com" target="main">yahoo</a> <br />
<br />
<iframe name="main" width="140" height="100" scrolling="no" marginwidth="0" marginheight="0</iframe><!--content-->Yes as Mark says do that way. Target is defined when your HTML page is able to find out the target. So you have to name the iframe then only HTML will be able to find it out.<br />
<br />
<br />
Hey! one quetstion. How will it work in Netscape?<!--content-->Originally posted by ombdj <br />
Hey! one quetstion. How will it work in Netscape? thats the problem, netscape doesn't support iframes at all.<!--content-->http://hotwired.lycos.com/webmonkey/96/37/index2a.html?tw=authoring :cool:<!--content-->
 
Back
Top