Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Links are fundamental to the Web. They are primarily used to navigate you from page to page. We have been using links in many examples so far. There are a number of ways to execute JavaScript from a link such as navigating to another page, opening a link in a popup window, calling a function from a link, submitting a form from a link, and so on. This chapter focuses on how links are used with images.
As you know, HTML hypertext links are usually created by assigning a Web address or a file name to the HTML <a href> tag, for example: