Home > Store

JavaScript Unleashed, 4th Edition

Register your product to gain access to bonus material or receive a coupon.

JavaScript Unleashed, 4th Edition


  • Sorry, this book is no longer in print.
Not for Sale


  • Copyright 2003
  • Dimensions: 7-3/8" x 9-1/8"
  • Pages: 816
  • Edition: 4th
  • Book
  • ISBN-10: 0-672-32431-8
  • ISBN-13: 978-0-672-32431-4

JavaScript Unleashed serves as a complete reference to the JavaScript language for the experienced programmer as well as a guide for developing JavaScript but familiar with other programming languages. Over the years JavaScript has solidified its position as the de facto standard in Web site scripting-even Microsoft uses JavaScript on its Web sites. And the capabilities of JavaScript have gradually been extended to the server side and to third-party products. JavaScript can be used in both Microsofts .NET environment and Windows Script Host, and Adobe Web development products are beginning to use JavaScript as their built-in scripting language.



All the examples developed in the book - 254 kb -- code.zip

Sample Content

Online Sample Chapters

Beginning the Process of Writing Scripts

Beginning the Process of Writing Scripts

Table of Contents

(NOTE: Each chapter concludes with a Summary.)


Who Should Read This Book? System Requirements. How This Book Is Organized. Conventions Used in This Book.


1. Introducing JavaScript.

JavaScript, JScript, ECMAScript, What? Web-based Application Development. What Can You Do with JavaScript? Browser Support for JavaScript. Resources on the Web.

2. Assembling Your JavaScript Toolkit.

An Overview of Necessary Tools. The JavaScript Development Process. Creating JavaScript Code.

3. Beginning the Process of Writing Scripts.

Initial Decisions. Starting Your Script. Your First Script.


4. Fundamental Language Components.

JavaScript Versions. Tokens. Variables. Constants. Data Types. Expressions. Comments. Functions. JavaScript Objects. Events.

5. Operators.

Assignment Operators. Arithmetic Operators. Comparison Operators. String Operators. Conditional Operators. Boolean Operators. The typeof Operator. Function Operators. Data Structure Operators. Bitwise Operators. Operator Precedence.

6. Control Structures and Looping.

Conditional Statements. Looping Statements. label Statements. with Statements. switch Statements.

7. Functions.

Understanding Functions. Working with Arguments. More Information on Functions.


8. Core Language Objects.

The Global Object. The String Object. The RegExp Object. The Array Object. The Date Object. The Math Object. The Boolean Object. The Number Object. The Error Object. The Function Object.

9. navigator Objects.

Understanding the Object. Using These Objects.

10. Window Object.

The Window Object. Opening and Closing Windows. Navigating Between Windows. Displaying Message Boxes. Working with Status Bar Messages.

11. Document Objects.

The Document Object. The Link Object. The Anchor Object. The Image Object. The Applet Object.

12. Form Objects.

The Form Object. The Text Input Object. The Button Objects: Submit, Reset, Button, and Image. The Checkbox Object. The Radio Object. The Select Object. The Password Object. The Hidden Object. The FileUpload Object.

13. Frames.

The Frame Object. The Location Object. The History Object.

14. Creating Custom JavaScript Objects.

Creating an Object. Instantiating Objects. Working with Object Instances. Creating Complex Objects. Creating Objects Dynamically. Extending Instantiated Objects.


15. Fundamentals of the Document Object Model.

Understanding the Document Object Model. The Document Object Model Specification. Structure of the DOM.

16. Accessing the DOM.

The ECMAScript Language Binding. Accessing the DOM. Navigating the DOM.

17. Manipulating the DOM.

Deleting Nodes. Creating Nodes. Copying Nodes.


18. Handling Events.

Understanding Events and Event Handlers. JavaScript Event Handlers. Other Event Tricks.

19. Cascading Style Sheets.

Basic Style Sheet Concepts. Using Styles in Your Document. JavaScript Style Objects.

20. Layers.

Universal Practices. <div> and <iframe>.

21. Rollovers and Visual Effects.

Knowing Your Events. Types of Rollovers. Visual Effects.

22. Menus and Toolbars.

Initial Considerations. Designing Menus. Building Toolbars.

23. JavaScript-Based Site Navigation.

Exploring Navigation Techniques. Scripting a Dynamic Toolbar. Using the History Object.

24. Forms and Data Validation.

Gathering User Feedback. Validating User Input. Creating Interactive Forms. Creating Reusable Validation Code.

25. Personalization and Dynamic Pages.

Understanding the Static Web Page. Introducing Cookies. Using Cookies. Using Other State Maintenance Options.


26. Server-Side Environment Introduction.

Web-Based Architectures. Client/Server Communication. Session Management.

27. Web Services with JScript .NET.

Introducing Web Services. What Is .NET? Building .NET Applications.

28. Windows Script Host.

Windows Script Host. Windows Script Components. Remote Scripting.


29. Pattern Matching Using Regular Expressions.

Creating Regular Expressions. Regular Expression Syntax. Using Regular Expressions. Regular Expression Tester. Example: Phone Number Validation Program. Example: Email Address Validation Program.

30. Error Handling.

Types of Errors. Interpreting Error Messages. Fixing Errors in Your Code. Testing Your Code. Solid Programming Techniques. Bulletproofing Your Code.

31. Debugging.

Using the Microsoft Script Debugger. Using the Netscape JavaScript Debugger. Using the alert() Method.


Submit Errata

More Information

Unlimited one-month access with your purchase
Free Safari Membership