Home > Store

JavaScript by Example

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

JavaScript by Example

Premium Website

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

About

Features

The definitive Javascript tutorial for the serious nonprogrammer who is interested in mastering the full power of the language.

° Written in Quigley's proven "by Example" style--over 90,000 copies domestic of Quigley books sold!!

° Includes hundreds of example Javascript programs that demonstrate the fun AND practical aspects of the language.

° Complete coverage, from basics such as script setup, data types, and dialog boxes, to advanced topics including event handling, the Document Object Model and CSS.

Description

  • Copyright 2004
  • Edition: 1st
  • Premium Website
  • ISBN-10: 0-13-140162-9
  • ISBN-13: 978-0-13-140162-4

"Quigley's book strikes a perfect balance: serious, yet exceptionally accessible. I strongly recommend it to anybody learning JavaScript for the first time."
--Nick Main, software engineer

In JavaScript by Example, Ellie Quigley teaches JavaScript using the same proven approach that's made her the world's favorite scripting author and instructor. This book's unique and classroom-tested learning path contains hundreds of small, easy-to-understand examples that demonstrate the full range of JavaScript's power. One step at a time, Quigley guides new JavaScript programmers through every essential technique, from script setup to advanced DOM and CSS programming.

Coverage includes:

  • Data types, literals, and variables
  • Operators, control structures, and functions
  • Building dialog boxes and working with JavaScript objects using the Browser object: navigator, windows frames, dynamic images, and links
  • Event handling, regular expressions, and form validation
  • The JavaScript Document Object Model (DOM), Cascading Style Sheets (CSS), and Dynamic HTML

Whether you're a first-time or long-time scripter, a Web professional or sysadmin, Ellie Quigley will help you write rock-solid JavaScripts that get the job done.

The CD-ROM contains HTML versions of Netscape's JavaScript 1.5 Core Reference and JavaScript 1.5 Core Guide PLUS all the source code and data files used in the book.



Sample Content

Online Sample Chapter

The JavaScript Building Blocks: Data Types, Literals, and Variables

Downloadable Sample Chapter

Download the Sample Chapter related to this title.

Table of Contents



Preface.


Acknowledgments.


1. Introduction to JavaScript.

What JavaScript Is. What JavaScript Is Not. What JavaScript Is Used For. JavaScript and Events. What Versions? What Browsers? Where to Put JavaScript. JavaScript and Old or Disabled Browsers. JavaScript from External Files. Exercises.



2. Script Setup.

The HTML Document and JavaScript. Syntactical Details. Generating HTML and Printing Output. About Debugging. Exercises.



3. The Building Blocks: Data Types, Literals, and Variables.

Data Types. Variables. Bugs to Watch For. Exercises.



4. Dialog Boxes.

Interacting with the User. Exercises.



5. Operators.

About JavaScript Operators and Expressions. Types of Operators. Number, String, or Boolean? Datatype Conversion. Special Operators. Exercises.



6. Under Certain Conditions. Exercises. Control Structures, Blocks, and Compound Statements. Conditionals. Loops. Exercises.


7. Functions.

What Is a Function? Debugging. Exercises.



8. Objects.

What Are Objects? User-Defined Objects. Manipulating Objects. Exercises.



9. JavaScript Core Objects.

What Are Core Objects? Array Objects. Array Properties and Methods. The Date Object. The Math Object. What Is a Wrapper Object? Exercises.



10. The Browser Objects: Navigator, Windows, and Frames.

JavaScript and the Browser Object Model. Exercises.



11. The Document Objects: Forms, Images, and Links.

The Document Object Model. Introduction to Forms. Introduction to Images. Introduction to Links. Exercises.



12. Handling Events.

Introduction to Event Handlers. Event Handlers as JavaScript Methods. Handling a Window or Frame Event. Handling Mouse Events. Handling Link Events. Handling a Form Event. Handling Key Events: onKeyPress, onKeyDown, and onKeyUp. Handling Error Events. The event Object. Exercises.



13. Regular Expressions and Pattern Matching.

What Is a Regular Expression? Creating a Regular Expression. Getting Control—The Metacharacters. Form Validation with Regular Expressions. Exercises.



14. Cookies.

What Are Cookies? Creating a Cookie with JavaScript. Exercises.



15. Dynamic HTML: Style Sheets, the DOM, and JavaScript.

What Is Dynamic HTML? What Is a Style Sheet? Types of Style Sheets. Where Does JavaScript Fit In? Exercises.



A. JavaScript Web Resources.


B. HTML Documents: A Basic Introduction.

Intro to the Intro. What Is HTML? HTML Tags. The Minimal HTML Document. Character Formatting. Linking. Adding Comments. Case Sensitivity. Graphics and Images. Troubleshooting. Metatags, Cascading Style Sheets, and Java. Looking Behind the Scenes (or, What Did We Do Before the Right-Click?). What About Frames? Some Final Thoughts.



C. CGI and Perl: They Hyper Dynamic Duo.

What Is CGI? Internet Communication Between Client and Server. Creating a Web Page with HTML. How HTML and CGI Work Together. Log Files. Where to Find CGI Applications. Getting Information Into and Out of the CGI Script. Processing Forms with CGI. The CGI.pm Module. Exercise C.1. Exercise C.2.



Index.

Index

Download the Index file related to this title.

Updates

Submit Errata

More Information

Unlimited one-month access with your purchase
Free Safari Membership