Book description
The perennial bestseller returns with new details for using the latest tools and techniques available with JavaScript
JavaScript is the definitive language for making the Web a dynamic, rich, interactive medium. This guide to JavaScript builds on the success of previous editions and introduces you to many new advances in JavaScript development. The reorganization of the chapters helps streamline your learning process while new examples provide you with updated JavaScript programming techniques.
You'll get all-new coverage of Ajax for remote scripting, JavaScript frameworks, JavaScript and XML, and the latest features in modern Web browsers. Plus, all the featured code has been updated to ensure compliance with the most recent popular Web browsers.
Introduces you to the latest capabilities of JavaScript, the definitive language for developing dynamic, rich, interactive Web sites
Features new coverage of data types and variables, JavaScript and XML, Ajax for remote scripting, and popular JavaScript frameworks
Offers updated code that ensures compliance with the most popular Web browsers
Includes improved examples on the most up-to-date JavaScript programming techniques
Continuing in the superlative tradition of the first three editions, Beginning JavaScript, Fourth Edition, gets you up to speed on all the new advances in JavaScript development.
Note: CD-ROM/DVD and other supplementary materials are not included as part of eBook file.
Table of contents
- Copyright
- About the Authors
- Credits
- Acknowledgments
- Introduction
- 1. Introduction to JavaScript and the Web
- 2. Data Types and Variables
-
3. Decisions, Loops, and Functions
- 3.1. Decision Making — The if and switch Statements
- 3.2. Looping — The for and while Statements
- 3.3. Functions
- 3.4. Summary
- 3.5. Exercise Questions
- 4. Common Mistakes, Debugging, and Error Handling
-
5. JavaScript — An Object-Based Language
- 5.1. Object-Based Programming
-
5.2. JavaScript's Native Object Types
-
5.2.1. String Objects
- 5.2.1.1. The length Property
- 5.2.1.2. Finding a String Inside Another String — The indexOf() and lastIndexOf() Methods
- 5.2.1.3. Copying Part of a String — The substr() and substring() Methods
- 5.2.1.4. Converting Case — The toLowerCase() and toUpperCase() Methods
- 5.2.1.5. Selecting a Single Character from a String — The charAt() and charCodeAt() Methods
- 5.2.1.6. Converting Character Codes to a String — The fromCharCode() Method
-
5.2.2. Array Objects
- 5.2.2.1. Finding Out How Many Elements Are in an Array — The length Property
- 5.2.2.2. Joining Arrays — The concat() Method
- 5.2.2.3. Copying Part of an Array — The slice() Method
- 5.2.2.4. Converting an Array into a Single String — The join() Method
- 5.2.2.5. Putting Your Array in Order — The sort() Method
- 5.2.2.6. Putting Your Array into Reverse Order — The reverse() Method
- 5.2.3. New Array Methods
- 5.2.4. The Math Object
- 5.2.5. Number Object
- 5.2.6. The toFixed() Method
- 5.2.7. Date Objects
-
5.2.1. String Objects
- 5.3. Creating New Types of Objects (Reference Types)
- 5.4. Summary
- 5.5. Exercise Questions
- 6. Programming the Browser
- 7. HTML Forms: Interacting with the User
- 8. Windows and Frames
- 9. String Manipulation
- 10. Date, Time, and Timers
- 11. Storing Information: Cookies
-
12. Dynamic HTML and the W3C Document Object Model
- 12.1. The Web Standards
-
12.2. The Document Object Model
- 12.2.1. The DOM Standard
- 12.2.2. Differences Between the DOM and the BOM
- 12.2.3. Representing the HTML Document as a Tree Structure
- 12.2.4. The Core DOM Objects
- 12.2.5. DOM Objects and Their Properties and Methods
- 12.3. Manipulating the DOM
- 12.4. DOM and Events
- 12.5. Writing Cross-Browser DHTML
- 12.6. JavaScript and XML
- 12.7. Summary
- 12.8. Exercise Questions
-
13. Using ActiveX and Plug-Ins with JavaScript
- 13.1. Checking for and Embedding Plug-ins (Non-IE Browsers)
- 13.2. Checking for and Embedding ActiveX Controls on Internet Explorer
-
13.3. Using Plug-ins and ActiveX Controls
- 13.3.1. Determining Plug-in/ActiveX Control Availability
- 13.3.2. Finishing Up
- 13.3.3. Testing the Disabling of the Form
-
13.3.4. Potential Problems
- 13.3.4.1. Similar but Not the Same — Differences Among Browsers
- 13.3.4.2. Differences in the Scripting of Plug-ins
- 13.3.4.3. Differences Between Operating Systems
- 13.3.4.4. Differences Between Different Versions of the Same Plug-in or ActiveX Control
- 13.3.4.5. Changes to Internet Explorer 6 Service Pack 1b and ActiveX Controls
- 13.4. Summary
- 13.5. Exercise Question
- 14. Ajax
-
15. JavaScript Frameworks
- 15.1. Picking a Framework to Work With
- 15.2. Getting Started
- 15.3. Digging Deeper Into jQuery
- 15.4. Diving into Prototype
- 15.5. Delving into MooTools
- 15.6. Summary
- 15.7. Exercise Questions
- A. Answers to Exercises
- B. JavaScript Core Reference
-
C. W3C DOM Reference
- C.1. DOM Core Objects
-
C.2. HTML DOM Objects
- C.2.1. Miscellaneous Objects: The HTML Collection
- C.2.2. HTML Document Objects: The HTML Document
- C.2.3. HTML Element Objects
-
C.2.4. HTMLButtonElement
- C.2.4.1. HTMLDivElement
- C.2.4.2. HTMLFormElement
- C.2.4.3. HTMLFrameElement
- C.2.4.4. HTMLFrameSetElement
- C.2.4.5. HTMLIFrameElement
- C.2.4.6. HTMLImageElement
- C.2.4.7. HTMLInputElement
- C.2.4.8. HTMLOptionElement
- C.2.4.9. HTMLOptionCollection
- C.2.4.10. HTMLParagraphElement
- C.2.4.11. HTMLSelectElement
- C.2.4.12. HTMLTableCellElement
- C.2.4.13. HTMLTableElement
- C.2.4.14. HTMLTableRowElement
- C.2.4.15. HTMLTableSectionElement
- C.2.4.16. HTMLTextAreaElement
- C.3. DOM Event Model and Objects
- C.4. Miscellaneous Events
- D. Latin-1 Character Set
Product information
- Title: Beginning JavaScript®, Fourth Edition
- Author(s):
- Release date: October 2009
- Publisher(s): Wrox
- ISBN: 9780470525937
You might also like
book
Professional: JavaScript® for Web Developers, Third Edition
A significant update to a bestselling JavaScript book As the key scripting language for the web, …
article
Have ChatGPT Ask You Questions
ChatGPT Shortcuts shows future prompt engineers how to harness the full potential of the state-of-the-art AI …
book
Foundation HTML5 Canvas
Foundation HTML5 Canvas: For Games and Entertainment teaches you how to make exciting interactive games and …
article
Why the Power of Technology Rarely Goes to the People
Throughout history, the advantages and costs of technological innovations have been unevenly distributed between the powerful …