Targeting Links


Whenever a user clicks a link, the linked page usually replaces the current browser page. This is the standard link function, which has been used for all links in this lesson up until this point. The instruction to a browser regarding where the link will appear is known as the target. There are a number of different targets that you can use with your links. At times, you might want to display the new browser page in a different window. If you link to a site outside your site, for example, you might be leading users out of your site if the new site replaces yours in the browser window. If users haven't bookmarked your URL, they might not remember how to return to your site. When an outside link opens a new browser window, the original page remains in the first window.

1.

Open the index.html document in the Lesson_03_Links folder and select the link to the Yoga Sangha Website. From the Property inspector's Target menu, choose _blank.

You created the link to the Yoga Sangha Website near the bottom of the page in the second exercise of this lesson.

Notice the six index links at the bottom of the documentthese are the links you created earlier in this lesson to the index.html files inside the six folders.

Dreamweaver provides you with a number of target options to change where the linked page is to be displayed. Targets other than _blank are used with frames. You will learn about frames in Lesson 10. The possible targets are as follows:

  • _blank: Loads the linked document into a new unnamed browser window.

  • _parent: Loads the linked document into the parent frameset or window of the frame that contains the link.

  • _self: Loads the linked document into the same frame or window as the link. This target is the same as the default, so you usually don't have to specify it.

  • _top: Loads the linked document into the full browser window, thereby removing all frames.

2.

Save the file and preview it in the browser.

When you click the yogasangha.com link, the linked page opens in a new browser window. You can close this file.

Tip

Be careful when using link targets to open new browser windows. Multiple windows might annoy or confuse your visitors. Each new window can increase the RAM requirements on the user's computerwith the amount of memory that most computers have these days, this is not so much of an issue, although it might be if a significant portion of your audience uses older machines.





Macromedia Dreamweaver 8(c) Training from the Source
Macromedia Dreamweaver 8: Training from the Source
ISBN: 0321336267
EAN: 2147483647
Year: 2006
Pages: 326

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