Solved

Web Authoring question

Posted on 1997-06-05
1
168 Views
Last Modified: 2013-12-25
I am currently designing a website, which uses frames. I use two frames -- one main frame and a frame for links within the site. When you use one of the links, netscape brings up a new window. Is there a way around this? Send your answer to: wblack@ccco.net please!
0
Comment
Question by:sblack
1 Comment
 
LVL 3

Accepted Solution

by:
Hawke earned 100 total points
ID: 1854285
Use this code

<HTML><HEAD>
<TITLE>MY HOMEPAGE
</TITLE></HEAD>
<FRAMESET COLS="20%,80%">
<FRAME SRC="links.html" NAME="INDEX"      SCROLLING="NO" NORESIZE>
<FRAME SRC="main.html" NAME="PAGE"      SCROLLING="AUTO" NORESIZE>
</FRAMESET>
</HTML>

Now let me explain to you the code.

FRAMESET is just the standard frame tag.
COLS just says that you want vertical frames.
ROWS would suggest that you want horizontal frames.
The percentage amount is the fraction of the screen you would like your frames to appear. Make sure that they total 100%.
SRC is the name of the file that you want to appear in a particular frame. The first filename will put that file in the first frame (the 20% one) while the second filename will put the file in the second frame (the 80% one).
NAME is the name of the frame where you want your file to appear.
SCROLLING allows for scrolling if your page is larger than the frame. The options are "NO" or "AUTO".
RESIZE allow a user to manually resize the frame to his/her convinience.

Now for the files. I'm assuming that you want your links frame to stay while the user browses the rest of your pages. In order for your main page to stay within the frame, and not pop up on a new window like it is now, the links in your links.html file will have to be targeted to that frame.
Ex.
<A HREF="nextpage.html" TARGET="page">

If you want to replace your links frame with another file, the link to that file would have to be targeted to that frame.
Ex.
<A HREF="newlinks.html" TARGET="links">

If you want to break out of frames, just TARGET="_top".
If you want to open a new window, TARGET="top".

I hope this helps.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Learn by example how to specify CSS selectors for Selenium WebDriver test automation software.
Because your company can’t afford for you to make SEO mistakes, you’ll want to ensure you’re taking the right steps each and every time you post a new piece of content. This list of optimization do’s and don’ts can help you become an SEO wizard.
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…
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…

803 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