Head First JavaScript
Michael Morrison
Beijing Cambridge Farnham Kln Sebastopol Tokyo
To the folks at Netscape who, way back in the last century, dreamed that the Web could be much more than a big online book with a bunch of linked pages that dont do anything.
Of course, they also dreamed up that horrific tag...dare to dream, just dont get too carried away!
Special Upgrade Offer
If you purchased this ebook directly from oreilly.com, you have the following benefits:
DRM-free ebooksuse your ebooks across devices without restrictions or limitations
Multiple formatsuse on your laptop, tablet, or phone
Lifetime access, with free updates
Dropbox syncingyour files, anywhere
If you purchased this ebook from another retailer, you can upgrade your ebook to take advantage of all these benefits for just $4.99. to access your ebook upgrade.
Please note that upgrade offers are not available from sample content.
A Note Regarding Supplemental Files
Supplemental files and examples for this book can be found at http://examples.oreilly.com/9780596527747/. Please use a standard desktop web browser to access these files, as they may not be accessible from all ereader devices.
All code files or examples referenced in the book will be available online. For physical books that ship with an accompanying disc, whenever possible, weve posted all CD/DVD content. Note that while we provide as much of the media content as we are able via free download, we are sometimes limited by licensing restrictions. Please direct any questions or concerns to .
Head First JavaScript
JavaScript/Web Programming
What will you learn from this book?
So youre ready to make the leap from writing HTML and CSS web pages to scripting dynamic web applications? Start here. Head First JavaScript is your guided tour to exciting and interactive web page creation. Built for your brain, this book covers all the JavaScript essentials, from basic web programming techniques including variables, functions, and looping to more advanced topics like form validation, DOM manipulation, custom objects, debuggingand even Ajax! So get ready...responsive web sites are just pages away.
Why does this book look so different?
We think your time is too valuable to spend struggling with new concepts. Using the latest research in cognitive science and learning theory to craft a multi-sensory learning experience, Head First JavaScript uses a visually rich format designed for the way your brain works, not a text-heavy approach that puts you to sleep.
So practical and useful, and so well explained. This book does a great job of introducing a complete newbie to JavaScript, and its another testament to Head Firsts teaching style. Out of the other JavaScript books, Head First JavaScript is great for learning, compared to other reference books the size of a phone book.
Alex Lee, Student, University of Houston
An excellent choice for the beginning JavaScript developer.
Fletcher Moore, Web Developer & Designer, Georgia Institute of Technology
Yet another great book in the classic Head First style.
TW Scannell
Advance Praise for Head First JavaScript
So practical and useful, and so well explained. This book does a great job of introducing a complete newbie to JavaScript, and its another testament to Head Firsts teaching style. Out of the other JavaScript books, Head First JavaScript is great for learning, compared to other reference books the size of a phone book.
Alex Lee, Student, University of Houston
An excellent choice for the beginning JavaScript developer.
Fletcher Moore, Web Developer & Designer, Georgia Institute of Technology
Yet another great book in the classic Head First style.
TW Scannell
JavaScript has long been the client-side engine that drives pages on the Web, but it has also long been misunderstood and misused. With Head First JavaScript , Michael Morrison gives a straightforward and easy-to-understand introduction of this language, removing any misunderstanding that ever existed and showing how to most effectively use it to enhance your web pages.
Anthony T. Holdener III, Web applications developer, and the author of Ajax: The Definitive Guide .
A web page has three partscontent (HTML), appearance (CSS), and behaviour (JavaScript). Head First HTML introduced the first two, and this book uses the same fun but practical approach to introduce JavaScript. The fun way in which this book introduces JavaScript and the many ways in which it reinforces the information so that you will not forget it makes this a perfect book for beginners to use to start them on the road to making their web pages interactive.
Stephen Chapman, Owner Felgall Pty Ltd., JavaScript editor, about.com
This is the book Ive been looking for to recommend to my readers. It is simple enough for complete beginners but includes enough depth to be useful to more advanced users. And it makes the process of learning fun. This might just be the only JavaScript book you ever need.
Julie L Baumler, JavaScript Editor, BellaOnline.com
Praise for Head First HTML with CSS & XHTML
Note
If you havent read this book yet, and youre new to JavaScript, we recommed that you do.
Eric and Elisabeth Freeman clearly know their stuff. As the Internet becomes more complex, inspired construction of web pages becomes increasingly critical. Elegant design is at the core of every chapter here, each concept conveyed with equal doses of pragmatism and wit.
Ken Goldstein, Executive Vice President & Managing Director, Disney Online
The Web would be a much better place if every HTML author started off by reading this book.
L. David Baron, Technical Lead, Layout & CSS, Mozilla Corporation, http://dbaron.org/
Ive been writing HTML and CSS for ten years now, and what used to be a long trial and error learning process has now been reduced neatly into an engaging paperback. HTML used to be something you could just hack away at until things looked okay on screen, but with the advent of web standards and the movement towards accessibility, sloppy coding practice is not acceptable anymore... from a business standpoint or a social responsibility standpoint. Head First HTML with CSS & XHTML teaches you how to do things right from the beginning without making the whole process seem overwhelming. HTML, when properly explained, is no more complicated than plain English, and the Freemans do an excellent job of keeping every concept at eye-level.
Mike Davidson, President & CEO, Newsvine, Inc.