Preface
I wrote my first book on JavaScript 15 years ago, and had to scramble just to find enough material to fill a book. With the JavaScript Cookbook, I had to choose among hundreds of uses to determine what to include. After all these years of watching JavaScript grow, I am still surprised at how far-reaching the use of JavaScript has become. In my opinion, there is no more useful programming language or development tool. About the only technology with wider use is HTML.
This book is for those who have dabbled with JavaScript and wish to try out new techniques, or increase their grasp of both fundamentals and advanced features of JavaScript. Along the way, I’ll demonstrate how to:
Work with the JavaScript objects, such as
String,Array,Number, andMathCreate reusable objects
Query and create new elements in the Document Object Model (DOM)
Use the new Selectors API for efficient and targeted querying
Use JavaScript with new HTML5 technologies, such as the new media elements, video and audio
Create interactive applications
Manage your web page space
Store data in various ways, from the simple to the complex
Use JavaScript with Scalable Vector Graphics (SVG) and the canvas element
Work with some of the interesting data structures, like Microformats and RDFa
Package your library for others to use, as well as use other libraries in your applications
Ensure your JavaScript applications are accessible through the use of Accessible Rich Internet Applications (ARIA)
Work in environments other than ...