Forum Moderators: open

Message Too Old, No Replies

Open Link in the Frame of a New Window

         

matthewamzn

9:38 am on Oct 8, 2005 (gmt 0)

10+ Year Member



How can I make a link open inside a specific frame of a new window.

tedster

1:19 am on Oct 9, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It takes javascript. Unless you have only one case, and then you might just build a dedicated frameset page. To handle many such instances, you still would build a second frameset page, but just one. That page would contain a script to "catch" the child page you link to and put it into the appropriate frameset.

For an example of a script like this, see Message #20 of our Generic Javascript thread forcing many pages into frames [webmasterworld.com]. It was written with search engine traffic in mind, but it does the same job no matter where the traffic comes from...including a link from your own website.