Link to subpage of site w/frames

Posted on 2004-10-27
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="'scholarships.html'>Link</a>
Question by:evco
    LVL 10

    Accepted Solution

    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="">
    <frame src="">

    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.

    LVL 3

    Expert Comment

    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

    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 -

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

    Any ideas.

    LVL 3

    Expert Comment

    Even with the page using an iframe, you can link directly to the subpage.  In this case, put 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

    Ok, thanks for the workaround.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Are you into PHP development and curious how you can make your life easier when publishing your website? Do you sometimes worry you might forget to remove debug lines? Or you spend unnecessary time to double check you haven't accidentally uploaded '…
    Both Easy and Powerful How easy is PHP? (  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
    This video teaches users how to migrate an existing Wordpress website to a new domain.
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

    856 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

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now