Click to See Complete Forum and Search --> : Loading links in main iframe


diamongirl42
02-21-2006, 03:34 PM
Hi, I want my website to use iframes so I can keep it more neat. I can't really figure out how to use them correctly though. I have a small menu bar thing with links like "about me" "art" "guestbook" etc and when clicked I want them all to load in the one main iframe. How do I code this? I hope you understand what I mean, if not just say and I'll try to be more specific.
Thanks!

Mr J
02-21-2006, 05:25 PM
Try

<a href="page.htm" onclick="window.frames['iframename'].location=this.href;return false ">Your Link</a>

Kravvitz
02-22-2006, 12:49 AM
You should use PHP includes (http://www.php.net/manual/en/function.include.php) or SSI (http://httpd.apache.org/docs/howto/ssi.html) instead of frames and iframes.

Whay are frames so evil? (http://www.html-faq.com/htmlframes/?framesareevil)
Why Frames Are Bad (http://karlcore.com/articles/article.php?id=2)
http://apptools.com/rants/framesevil.php
http://www.456bereastreet.com/archive/200411/who_framed_the_web_frames_and_usability/
Why Frames Suck (Most of the Time)(1996) (http://www.useit.com/alertbox/9612.html)
What's wrong with frames? (http://www.htmlhelp.com/design/frames/whatswrong.html)
http://www.tamingthebeast.net/articles/framesnoframes.htm

pottersdt2k
03-15-2006, 10:20 PM
doesn't <a href="page.htm" target="iframe_name">link</a> work as well?