Sign in to follow this  

[web] Frames and Links

Recommended Posts

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:


<FRAMESET COLS="25%,75%"> 
 <FRAME SRC="menu.html"> 
 <FRAME SRC="news.html" NAME="view"> 


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

Share this post

Link to post
Share on other sites
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.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this