Targeting Links


Sometimes you want a link to go to a new window, or to an existing window other than the one you're clicking on. That's done by giving the link a target , which is the name of the window in which you want the new page to load.

To give a link a target:

1.
Follow the steps above to create a link, and then click on the <a> in the tag selector.

2.
Directly below Link in the Property Inspector is a text field named Target where the target is entered. Alternatively, you can just click on the pop-up menu to the right of the field to choose the target.

3.
If you're working on a site without frames , you have four choices: _blank , _parent , _self , and _top (sites with frames are different and will be covered in Chapter 11). Choose one from the popup, and the target field will show your choice ( Figure 7.13 ).

Figure 7.13. Set a link's target in the Property Inspector with this pop-up menu.


  • blank: Open a new, blank window.

  • parent: If the current window was opened by a previous link to a blank target (that is, the current window is a newly opened window), open this link in the previous window. If the current window wasn't opened that way, what happens depends on the user 's browserbut usually, it will just open in the current window.

  • self and top: For non-framed sites, these are both equivalent to not using any target at all.

Tips

  • To remove a target, just click in the target text field in the Property Inspector and erase its content.

  • The underscore before the name of a target is there to tell the browser that this is a special type of target and not just the name of another window. You'll learn about named windows in Chapter 11.


Tips

  • While you do see that anchor on the page in Dreamweaver, it's not going to be there when you or anyone else sees the page in a browserit's just there for your editing convenience, and it's one of the few ways in which Dreamweaver isn't 100% WYSIWYG. Hate seeing them? From the menu bar, choose View > Visual Aids > Invisible Elements to toggle the visibility of these icons on or off.

  • There are many ways to delete a named anchor. One way is to click on the anchor icon and delete it. Or, in the Property Inspector, clear the Named Anchor name field.





Macromedia Dreamweaver 8 for Windows & Macintosh Visual QuickStart Guide
Macromedia Dreamweaver 8 for Windows & Macintosh
ISBN: 0321350278
EAN: 2147483647
Year: 2005
Pages: 239

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net