chapter 5

Interaction

Thus far, your scripts have communicated with their users exclusively via prompt when requesting input and via alert when displaying output. As with any language, user interaction with JavaScript can be accomplished in other ways; of these, the most popular by far is the Web. Now that you are better acquainted with the language, we can discuss web page interaction more effectively.

Because JavaScript and the Web are very tightly coupled in most people's minds, you might have expected a chapter such as this to appear sooner in the book. We have purposely delayed discussing web technologies to this point because we believe that maximizing JavaScript's potential with the Web involves understanding JavaScript as a programming ...

Get The JavaScript Programming Language now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.