Links are fundamental to the Web. They get you where you want to go, and often take you so far away that you forgot where you were when you started. In fact, Web crawlers are programs that use links to move all over the Internet. HTML hypertext links are usually created by assigning a Web address or a filename to the HTML <a href> tag, for example:
<a href="URL address ">Go Home </a>
or, to use an event handler with a link (see Chapter 12, "Handling Events"):
11.4.2 The links Object
A links object contains a URL, similar to the window's location object, and shares the same properties. See "The location Object" on page 244. There are nine events that can be triggered by a link: onClick, onDblClick, onKeyDown, onKeyPress, onKeyUp, onMouseDown, onMouseUp, onMouseOver , and onMouseOut . (For details, see Chapter 12, "Handling Events.")
Table 11.23. Properties of the links object.
11.4.3 The anchor Object
11.4.4 The embeds Object
The embeds object (Navigator 3.0), like the forms and image objects, creates an array representing each embedded object in a page, such as a movie, spreadsheet, or audio clip, in the order the object is found in the page. The first embedded object is assigned to embeds , the second to embeds , and so on. You can also index the embeds array by string; just use the name of the embedded object in quotes.
Figure 11.55. Plays the embedded .wav file until it is finished or the user presses the link.
Figure 11.56. The stop() method isn't supported in IE. The music plays until the clip finishes.