ptg16476052
Workshop 495
17
At one time, using event-handler attributes to bind functions to events was the most com-
mon approach, but these days, it’s more common to bind events to elements in other
ways. It’s considered poor style to include JavaScript throughout your web pages, and
using the event-handler attributes can override event bindings that are applied from
JavaScript rather than in the HTML. In Lesson 18, I explain how to bind events to ele-
ments without changing your markup.
Learning More About JavaScript
The list of statements, functions, and options included in this lesson represents
only part of the potential offered by JavaScript.
For this reason, I cannot overemphasize the importance of the online documenta-
tion provided by Mozilla. All the latest JavaScript enhancements and features will be
doc umented first at https://developer.mozilla.org/en-US/docs/Web/JavaScript.
Summary
JavaScript enables HTML publishers to include simple programs or scripts within a web
page without having to deal with the many difficulties associated with programming in
high-level languages such as Java or C++.
In this lesson, you learned about the