HTML and CSS Reference
allows programmers to manipulate various aspects of the browser behavior, as well as
code in a web page, it isn't run until the event it's associated with is triggered.
interacting with a form element in some way, or clicking a link. Plenty of other events
are available, too. Many of these events are utilized in what most users would consider to
be annoying ways. For example, many sites open an additional window containing an
advertisement when you navigate to one of their pages. This is accomplished using
applications include validating forms before they are submitted, or displaying extra infor-
mation on a page when a user clicks a link without requiring a full page refresh.
This introduction will by necessity be briskly paced. There are
plishing tasks, and hopefully kindle your interest to dig into the
language more deeply.
server or to send a request to the server to retrieve information without leaving the page
that the user is on. Using these capabilities, you can change the contents of a page,
change the style of elements on a page, validate user input before a user submits a form,
and modify the behavior of the browser—all by using scripts embedded within your web
Ease of Use
applications, including some you've probably seen, like Google Maps. At the same time,