Book description
JavaScript is an essential language for creating modern, interactive websites, but its complex rules challenge even the most experienced web designers. With JavaScript: The Missing Manual, you'll quickly learn how to use JavaScript in sophisticated ways -- without pain or frustration -- even if you have little or no programming experience.
JavaScript expert David McFarland first teaches you the basics by having you build a simple program. Then you'll learn how to work with jQuery, a popular library of pre-built JavaScript components that's free and easy to use. With jQuery, you can quickly build modern, interactive web pages -- without having to script everything from scratch!
- Learn how to add scripts to a web page, store and manipulate information, communicate with the browser window, respond to events like mouse clicks and form submissions, and identify and modify HTML
- Get real-world examples of JavaScript in action
- Learn to build pop-up navigation bars, enhance HTML tables, create an interactive photo gallery, and make web forms more usable
- Create interesting user interfaces with tabbed panels, accordion panels, and pop-up dialog boxes
- Learn to avoid the ten most common errors new programmers make, and how to find and fix bugs
- Use JavaScript with Ajax to communicate with a server so that your web pages can receive information without having to reload
Publisher resources
Table of contents
- A Note Regarding Supplemental Files
- The Missing Credits
- Introduction
-
I. Getting Started with JavaScript
- 1. Writing Your First JavaScript Program
-
2. The Grammar of JavaScript
- Statements
- Commands
- Types of Data
- Variables
- Working with Data Types and Variables
- Tutorial: Using Variables to Create Messages
- Tutorial: Asking for Information
- Arrays
- Tutorial: Writing to a Web Page Using Arrays
- Comments
- 3. Adding Logic and Control to Your Programs
- 4. Working with Words, Numbers, and Dates
-
5. Dynamically Modifying Web Pages
- Modifying Web Pages: An Overview
- Understanding the Document Object Model
- Introducing JavaScript Libraries
- Selecting Page Elements (Revisited)
- Adding Content to a Page
- Setting and Reading Tag Attributes
- Reading, Setting, and Removing HTML Attributes
- Creative Headlines
- Acting on Each Element in a Selection
- Automatic Pull Quotes
- 6. Action/Reaction: Making Pages Come Alive with Events
- 7. Improving Your Images
-
II. Building Web Page Features
- 8. Improving Navigation
- 9. Enhancing Web Forms
- 10. Expanding Your Interface
- III. Ajax: Communicating with the Web Server
- IV. Troubleshooting, Tips, and Tricks
- V. Appendix
- Index
- About the Author
- Colophon
- Copyright
Product information
- Title: JavaScript: The Missing Manual
- Author(s):
- Release date: July 2008
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9780596515898
You might also like
book
JavaScript & jQuery: The Missing Manual, 3rd Edition
JavaScript lets you supercharge your HTML with animation, interactivity, and visual effects—but many web designers find …
book
JavaScript & jQuery: The Missing Manual, 2nd Edition
JavaScript lets you supercharge your web pages with animation, interactivity, and visual effects, but learning the …
book
JavaScript: Best Practice
There's no doubt that the JavaScript ecosystem changes fast. Not only are new tools and frameworks …
book
JavaScript Everywhere
JavaScript is the little scripting language that could. Once used chiefly to add interactivity to web …