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
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
The GuruBook
The GuruBook is an inspiring collection of 45 articles and interviews with well-known thought leaders and …
book
Networking Fundamentals
Become well-versed with basic networking concepts such as routing, switching, and subnetting, and prepare for the …
book
Refactoring: Improving the Design of Existing Code
Fully Revised and Updated–Includes New Refactorings and Code Examples “Any fool can write code that a …
book
Learning Algorithms
When it comes to writing efficient code, every software professional needs to have an effective working …