1. No Profile Picture
    Devshed Newbie (0 - 499 posts)
    I have a site built on frames, and I would like to make sure that if people visit a page after i.e. getting a link to it from a search engine, the page will be opened in the frameset I meant for them to belong to, and not as a "stand-alone" page.
    Is there a javascript-way to do this?
  2. #2
  3. No Profile Picture
    Devshed Newbie (0 - 499 posts)
    Hi BigMac!

    You could check the location of the topframe (wich should be your frameset-page). If the url is different you could set it to your frameset-page.
    Code could look something like this:
    if (top.document.location != whatever_url.htm)
    top.document.location = whatever_url.htm


Similar Threads

  1. how to make a login page( URGENT )
    By mcaldeveloper in forum Java Help
    Replies: 2
    Last Post: August 31st, 2003, 04:00 PM
  2. how to make a php form return on a different page?
    By DKY in forum PHP Development
    Replies: 7
    Last Post: August 15th, 2003, 11:59 AM
  3. Ill make you a website, $10 a page, logo INCLUDED
    By puzo in forum Project Help Wanted
    Replies: 1
    Last Post: August 8th, 2003, 12:22 PM
  4. how to make a preview page for the design
    By SBUH in forum Flash Help
    Replies: 0
    Last Post: July 14th, 2003, 06:53 AM
  5. Replies: 7
    Last Post: June 12th, 2003, 07:23 PM

IMN logo majestic logo threadwatch logo seochat tools logo