You can use any name for
the nonexistent named anchor. In fact, you don??™t even have to use a name??”you can just use a hash mark
(#) by itself.
There??™s one problem to note, however: Netscape browsers have a tendency to send the page to the top if a
link of this type is used. Many programmers have begun to substitute an empty call to a JavaScript function
instead, such as javascript:;. Dreamweaver itself now uses javascript:; instead of # when a new
behavior is attached to an image.
351
Establishing Web Links 10
Named anchors are an excellent way to navigate within a page. In this Dreamweaver Technique, you add
links and named anchors to a page to allow the user to move about the page more easily. To save time,
three of the five named anchors have been done for you.
1. From the Techniques site, expand the 10_Links folder and open the anchors_start file.
2. Scroll down the page and place your cursor in front of the Queens heading.
3. Choose Insert ??? Named Anchor.
4. When the Named Anchor dialog box appears, enter queens in the Anchor Name field.
5. Near the top of the page, select the Queens entry in the list.
6. In the Property inspector??™s Link field, enter #queens and press Tab.
continued
Inserting Named Anchors
Targeting Your Links
Thus far, all the links discussed in this chapter have had a similar effect: They open another Web page or
section in your browser??™s window.
Pages:
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715