Chapter 21. JAVASCRIPT

JavaScript enables you to add multimedia capabilities to your Web site. JavaScript is linked to DHTML, as you learned in Chapter 18, "DHTML Programming," but it is a separate entity from DHTML. Although DHTML relies on JavaScript, DHTML is a collection of technologies that surpasses HTML alone. By itself, JavaScript is a script-based programming environment that you use to spruce up Web sites and make those sites more interactive.

  • JavaScript is loosely based on the Java programming language.

  • A Web page can contain a JavaScript scriptlet that executes in response to the user's actions.

  • A scriptlet executes on the end user's computer, not on the Web server.

  • For a scripting language, JavaScript is quite extensive.

Get Absolute Beginner's Guide to Programming, Second Edition now with O’Reilly online learning.

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