Solved

Web Authoring question

Posted on 1997-06-05
1
167 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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

763 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

6 Experts available now in Live!

Get 1:1 Help Now