Three years after the first edition of this book was released, there have been several advances in the techniques and technology of JavaScript in the browser. This Second Edition has been thoroughly updated to include the latest versions of all web browsers. The book also introduces newer techniques and related technologies such as canvas, E4X, and JavaScript 2.0. Setting the stage by covering JavaScript in HTML, the book then explores the core of JavaScript, ECMAScript, to give you an understanding of the language's basic syntax, data types, statements, and memory management.
Table of Contents:
1. What Is JavaScript? 2. JavaScript in HTML.
3. Language Basics.
4. Variables, Scope, and Memory.
5. Reference Types.
6. Object-Oriented Programming.
7. Anonymous Functions.
8. The Browser Object Model.
9. Client Detection.
10. The Document Object Model.
11. DOM Levels 2 and 3.
12. Events.
13. Scripting Forms.
14. Error Handling and Debugging.
15. XML in JavaScript.
16. ECMAScript for XML.
17. Ajax and JSON.
18. Advanced Techniques.
19. Client-Side Storage.
20. Best Practices.
21. Upcoming APIs.
22. The Evolution of JavaScript.
Appendix A. JavaScript Libraries.
Appendix B. JavaScript Tools.