To create a link, first type the text that will
identify what the link is. For example, I might want a link back
to my home page for this tutorial. I have now typed the words "home
page." Next, select those words by highlighting them (click and drag).
Then click the link button pictured above. You will find it on the
Composition toolbar above the Formatting toolbar we just used. When
you click this button, a dialogue box that looks like this will appear:
|In the "Link to" portion of the box, in the white text area labeled "link to a page location or local file," type in the file you want to link to. If it is a file that resides IN THE SAME FOLDER as this page, you need to type only the filename. Ex: compose.htm (this would take me back to the home page for these tutorials.) If the page you want to link to is NOT in the same folder (ex: another site on the web), you must type the entire path. Ex: http://www.wor.com|
The "mailto" link
You may want your readers to be able to send you an email message directly from your page. There is a special command you can use with the link button to make an email message box pop up automatically. This is called the "mailto" link. There is an example at the bottom of this page. Scroll to the bottom and click on my name. You will see an email message box pop up with my email address already typed in. All the reader has to do is type the subject of the message, the message itself, and click the send button.
To pull off this bit of magic is quite simple. Let's assume you want to make your name a "mailto" link. Type your name, highlight it, then click the link button. In the white text area box, type:
You would of course, substitute your own email
address for mine. Notice that mailto is all one word, it is followed
by a colon, and there is no space anywhere.
We're jumping the gun a little bit here since
we haven't talked about images yet (we will in the next tutorial), but
you can also make an image a link. Simply click the image to select
it (a border will appear around the image), click the link button, then
type in the filename or URL you want to link to. Voilà!!
The image is now a link. When you view it in the browser, you will
see a blue border around the image (I'll show you how to get rid of that
later) and when you pass your cursor over it, the cursor will assume the
shape of a hand.
Let's look at an example. I have two major
sections on this page, links and targets. Let's assume that on the
home page for the Netscape Tutorials where I have listed the table of contents
for the tutorials, I want to be able to click on the word "targets" and
come immediately to this section of this page (I'm not interested in links,
just targets). First, I would have to set a target on THIS page.
I would place my cursor in front of the word "Target" (in red, above) and
click the target button. The following box would pop up:
|This box asks me to name this target. I'm going to call it "targets". I would type the word "targets" in the white box.|
Next, I would go back to my home page file, open
it in Composer, select the menu item that says "Targets" and click on the
link button . The following
dialogue box will open up:
|First, I type in the name of the file I want to link to. I want to link from the menu on my home page to this page "links.htm." Once I have chosen this file, a list of targets that have ALREADY BEEN SET on this page will appear. In this case, there is only one: "targets." I select "targets" by clicking on it to highlight it, then click OK.|
Changing Links or Targets
You may want to change a link or target after
you have created it. You can do this quite easily by putting your
cursor over the link or target you want to change, then click the RIGHT
mouse button. The following menu will pop up:
||If you want to remove the link entirely, click on "Remove Link."
If you want to change anything else, click on "Link Properties" and the same dialogue box will open up that opened when you first created the link. You can then change whatever you want.
Notice also that you can cut, copy and paste links.
© 2000 by Pat Pecoy
These tutorials may be reproduced by permission only.
They may not be mirrored onto another site.