Book description
The essential JavaScript resource—fully updated
Design, debug, and publish high-performance web pages and applications using tested techniques and best practices from expert developers. The all-new edition of this comprehensive guide has been thoroughly revised and expanded to cover the latest JavaScript features, tools, and programming methods.
JavaScript: The Complete Reference, Third Edition provides illustrative examples, line-by-line code samples, and practical development advice—from the core of the language to the various standard and emerging APIs supported by modern web browsers. This in-depth resource covers everything you need to know, whether you’re trying to understand the fundamentals of weak typing in JavaScript, reduce your confusion over closures, or perform common tasks like form validation or Ajax calls.
- Explore core JavaScript syntax and data types
- Investigate often confusing concepts such as weak typing and closures
- Use object-oriented programming the JavaScript way
- See what changes come from ECMAScript 5
- Perform dynamic content updates using DOM methods
- Handle user-generated events with modern event models
- Modernize form handling with HTML5 and JavaScript
- Use the XMLHttpRequest object to create Ajax applications
- Control animation and multimedia content with JavaScript
- Generate bitmap graphics with the Canvas API
- Learn methods to handle the challenges of cross-browser coding
- Discover defensive development and error handling
Table of contents
- Cover Page
- JavaScript: The Complete Reference, Third Edition
- Copyright Page
- Contents at a Glance
- Contents
- Acknowledgments
- Introduction
-
Part I Introduction
- Chapter 1 Introduction to JavaScript
- Chapter 2 Overview of JavaScript Core Language Features
-
Part II Core Language
- Chapter 3 Data Types and Variables
-
Chapter 4 Operators, Expressions, and Statements
- Statement Basics
-
Operators
- Assignment Operator
- Arithmetic Operators
- Bitwise Operators
- Bitwise Shift Operators
- Combining Arithmetic and Bitwise Operations with Assignment
- Increment and Decrement
- Comparison Operators
- Logical Operators
- ? Operator
- Comma Operator
- void Operator
- typeof
- Object Operators
- Operator Precedence and Associativity
- Core JavaScript Statements
- Summary
- Chapter 5 Functions
- Chapter 6 Objects
- Chapter 7 Array, Date, Math, and Type-Related Objects
- Chapter 8 Regular Expressions
- Chapter 9 JavaScript Object Models
-
Chapter 10 The Standard Document Object Model
- DOM Flavors
- Document Trees
- Basic Element Access: getElementById( )
- Other Element Access Methods
- Creating Nodes
- Appending and Inserting Nodes
- Dynamic Markup Insertion Realities
- innerText and outerText
- Copying Nodes
- Deleting and Replacing Nodes
- Manipulating Attributes
- Other Node Methods
- Namespaces
- The DOM and HTML Elements
- DOM Table Manipulation
- The DOM and Css
- DOM Traversal API
- DOM Range Selections
- Continued DOM Evolution
- Summary
- Chapter 11 Event Handling
-
Part III Applied JavaScript
-
Chapter 12 Windows, Frames, and Overlays
- Introduction to the Window Object
- Dialogs
- Emerging and Proprietary Dialog Methods
- Opening and Closing Generic Windows
- Detecting and Controlling Window Chrome
- Practicalities of Spawned Windows
- Controlling Windows
- Manipulating a Window’s History
- Setting Window Timeouts and Intervals
- Window Events
- Interwindow Communication Basics
- Frames: A Special Case of Windows
- Summary
- Chapter 13 Form Handling
- Chapter 14 User Interface Elements
-
Chapter 15 Ajax and Remote JavaScript
- Ajax Defined
- Hello Ajax World
- XML HttpRequest Object
- XHR Instantiation and Cross-Browser Concerns
- XHR Request Basics
- Synchronous Requests
- Asynchronous Requests
- Sending Data via GET
- Sending Data via Post
- Using Other HTTP Methods
- Setting Request Headers
- Response Basics
- Controlling Requests
- Authentication with XHRs
- Propriety and Emerging XHR Features
- Form Serialization
- Cross-Domain Ajax Requests
- Non-XHR Communication Methods
- Comet and Sockets
- Ajax Implications and Challenges
- Summary
- Chapter 16 Browser Management
- Chapter 17 Media Management
- Chapter 18 Trends and Practices
-
Chapter 12 Windows, Frames, and Overlays
- Appendix JavaScript Reserved Words
- Index
Product information
- Title: JavaScript The Complete Reference, 3rd Edition
- Author(s):
- Release date: July 2012
- Publisher(s): McGraw-Hill
- ISBN: 9780071741217
You might also like
book
JavaScript Absolute Beginner's Guide, 2nd Edition
Who knew how simple using JavaScript could be? Make the most of JavaScript--even if you've never …
book
JavaScript Everywhere
JavaScript is the little scripting language that could. Once used chiefly to add interactivity to web …
book
JavaScript Cookbook
Why reinvent the wheel every time you run into a problem with JavaScript? This cookbook is …
book
Beginning JavaScript: The Ultimate Guide to Modern JavaScript Development
Discover everything you need to know to get up-to-speed with JavaScript development and add dynamic enhancements …