Link to subpage of site w/frames

Posted on 2004-10-27
Medium Priority
Last Modified: 2012-06-27
Is is possible to link to a subpage on a site using frames? They are using 2 frames, one for the content and one for the navigation.

Obviously if I link to the subpage I get only the subpage and no navigation. Is there a way around this problem.

Could I add a little javascript to url to tell the browser to follow one of the navigation links? Like - <a href="http://www.website.com/+javascript:location.href='scholarships.html'>Link</a>
Question by:evco
  • 2
  • 2
LVL 10

Accepted Solution

frugle earned 1000 total points
ID: 12427741
There isn't an easy way to link directly to a content page and maintain the frameset when you land, that is what is completely evil about frames.

You can recreate the frameset locally and link to that - i.e. have a page on your own server (call it linked.htm)

<frame src="http://www.domain.com/navigation.htm">
<frame src="http://www.domain.com/content_page.htm">

obviously setting the frame names, positions, sizes etc.

OR rely on the target page using javascript to detect it has been divorced from its frameset and recreate it with javascript before reloading itself (nasty)

The main thing to do is to complain to the site owner that you want to link to their content but cannot because they use frames.  They may want you to ONLY link directly to their homepage, which puts a downer on things anyway.


Expert Comment

ID: 12427742
Yes, you can link to the subpage.  Right-click on the page and get the name of the page and link to that address.  If they are using the other frame for navigation, I'm not sure what else you could do unless you create your own frame that contains your version of navigation.

Author Comment

ID: 12427917
I know...damn frames.

Mike - I started using your idea but then discovered that the site is using an iframe to load subpages...I wasn't going to post the url but it might help to see it - http://www.stevens-tech.edu/dtd/

I'm looking to link from another site to the Delt Scholarships page.

Any ideas.


Expert Comment

ID: 12429595
Even with the page using an iframe, you can link directly to the subpage.  In this case, put http://www.stevens-tech.edu/dtd/dscholarships.htm in your main frame and then recreate some navigation of your own in another frame.  In this case, it isn't as easy as using their navigation.html (since their navigation isn't in a frame) or something but you could copy their code and images and rework it for your own use.

Author Comment

ID: 12434387
Ok, thanks for the workaround.

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
These seven tips can help you create an extraordinary website, one that captivates audiences and has them wanting to return regularly for more. Keep reading to find out what your site is missing and what you need to add!
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
The viewer will learn how to count occurrences of each item in an array.
Suggested Courses
Course of the Month6 days, 16 hours left to enroll

593 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question