Share this Page URL

Chapter 5. Making the Jump to Hyperspace... > Creating an E-mail Link - Pg. 57

Making the Jump to Hyperspace: Adding Links 57 Figure 5.2. The hypertext version of this chapter. Although you'll mostly use anchors to link to sections of the same web page, there's no law against using them to link to specific sections of other pages. All you do is add the appropriate anchor to the other page and then link to it by adding the anchor's name (preceded, as usual, by #) to the end of the page's filename. For example, suppose you want to put a link in a page and you want that link to whisk the reader immediately to the "Getting Hyper: Creating Links in HTML" section of chapter5.htm. I gave that section the anchor name Section2, so here's a tag that sets up a link to it: <A HREF="chapter5.htm#Section2">How to Create a Link</A> Creating an E-mail Link As I mentioned earlier, there's no reason a link has to lead to a web page. In fact, all you have to do is alter the "how" part of the URL, and you can connect to most other Internet services, including FTP and Usenet. Page Pitfalls Setting up an e-mail link may not work properly if the user has a web-based e-mail service such as Yahoo!. That's because when the user clicks the e-mail link, the browser attempts to launch the user's e-mail software. But that software isn't used for web e-mail, so the browser will have no way of sending the message. Note, however, that recent versions of Outlook Express do allow you to set up a Hotmail account, which is a step in the right direction. In this section, however, I'll concentrate on the most common type of nonweb link: e-mail. In this case, someone clicking an e-mail link is presented with a window he or she can use to send a message to your e-mail address. Now that's interactive!