<HTML>
<HEAD><TITLE>ajwright.net</TITLE></HEAD>
<FRAMESET COLS="25%,75%">
<FRAME SRC="menu.html">
<FRAME SRC="news.html" NAME="view">
</FRAMESET>
</HTML>
[web] Frames and Links
I'm not much of a web developer, so my personal website is pretty plain. I'm using frames at the moment, and index.html file for the site looks like this:
The menu of the site appears in the left frame, and all the content appears in the right frame.
I want to be able to give links out to specific pages on my site, but if people go to those, they wont see the sites menu frame. How can I make sure that this frame always gets displayed?
Thanks
You could use PHP to emit your top-level frame, and pass the page name as a parameter to the frame. Instead of "news.html" you'd emit whatever link they passed in. Make sure the link doesn't contain slashes or colons, though, as that might be someone trying to use your site as container for some spoofing.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement