Links make the web go around. Without the instant access
to information provided by linking from page to page and site to site,
the web wouldn’t have gotten very far. In fact, it wouldn’t be a
web at all. Since links are one of the most common and powerful pieces of
enhancing how links work. In this chapter, you’ll learn the basics of
and in windows within a page.
Some Link Basics
You undoubtedly know a lot about links already. After all,
they’re the heart of the web, and the humble <a> tag is one of
page can turn a basic link into a supercharged gateway of
your links. Once you’ve got the basics, later sections of this chapter
will give you real-world techniques for controlling links with
To do anything with a link on a web page, you must first
select it. You can select all of the links on a page, just one, or a
particular group of related links—for example, links that are
grouped together in the same part of a page, or that share a certain
characteristic such as external links that point to other
jQuery gives you great flexibility in selecting document elements. For example, the code
$(‘a’) creates a jQuery selection of ...
O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.