| |
| |
Introduction | |
| |
| |
System Requirements | |
| |
| |
About This Book | |
| |
| |
Conventions Used in This Book | |
| |
| |
What You're Not to Read | |
| |
| |
Foolish Assumptions | |
| |
| |
How This Book Is Organized | |
| |
| |
Icons Used in This Book | |
| |
| |
Where to Go from Here | |
| |
| |
| |
Building Killer Web Pages for Fun and Profit | |
| |
| |
| |
Hitting the Highlights: JavaScript Basics | |
| |
| |
What Is JavaScript? (Hint: It's Not the Same Thing as Java!) | |
| |
| |
JavaScript and HTML | |
| |
| |
JavaScript and Your Web Browser | |
| |
| |
What Can I Do with JavaScript That I Can't Do with Web Languages? | |
| |
| |
What Do I Need to Get Started? | |
| |
| |
| |
Writing Your Very First Script | |
| |
| |
From Idea to Working JavaScript Application | |
| |
| |
Testing Your Script | |
| |
| |
| |
JavaScript Language Basics | |
| |
| |
JavaScript Syntax | |
| |
| |
Putting It All Together: Building JavaScript Expressions and Statements | |
| |
| |
| |
JavaScript-Accessible Data: Getting Acquainted with the Document Object Model | |
| |
| |
Object Models Always Pose Nude | |
| |
| |
Anatomy of an Object: Properties, Methods, Event Handlers, and Functions in Action | |
| |
| |
Browser Object Models | |
| |
| |
Netscape Navigator | |
| |
| |
Microsoft Internet Explorer | |
| |
| |
| |
Creating Dynamic Web Pages | |
| |
| |
| |
Detecting Your Users' Browser Environments | |
| |
| |
Whacking Your Way through the Browser Maze | |
| |
| |
Detecting Features | |
| |
| |
| |
That's How the Cookie Crumbles | |
| |
| |
Cookie Basics | |
| |
| |
Saving and Retrieving User Information | |
| |
| |
| |
Working with Browser Windows and Frames | |
| |
| |
Working with Browser Windows | |
| |
| |
Working with Frames | |
| |
| |
| |
Making Your Site Easy For Visitors to Navigate and Use | |
| |
| |
| |
Creating Interactive Images | |
| |
| |
Creating Simple Animations | |
| |
| |
Creating Rollovers, Hotspots, and Navigation Bars | |
| |
| |
| |
Creating Menus | |
| |
| |
Getting Acquainted with Menus | |
| |
| |
Taking Advantage of Third-Party DHTML Menu Components | |
| |
| |
| |
Creating Expandable Site Maps | |
| |
| |
Site Map Basics | |
| |
| |
Taking Advantage of Third-Party Site-Mapping Tools | |
| |
| |
| |
Creating Pop-Up Help (Tooltips) | |
| |
| |
Creating Plain HTML Tooltips | |
| |
| |
Building DHTML Tooltips | |
| |
| |
Taking Advantage of Third-Party Tooltips Scripts | |
| |
| |
| |
Interacting with Users | |
| |
| |
| |
Handling Forms | |
| |
| |
Capturing User Input by Using HTML Form Fields | |
| |
| |
Putting It All Together: The Order Form Validation Script | |
| |
| |
| |
Handling User-Initiated Events | |
| |
| |
The Skinny on Events and Event Handlers | |
| |
| |
Handling Events | |
| |
| |
| |
Handling Runtime Errors | |
| |
| |
Exceptional Basics | |
| |
| |
Handling Exceptions | |
| |
| |
| |
The Part of Tens | |
| |
| |
| |
Top Ten (Or So) Online JavaScript Resources | |
| |
| |
Ten Web Sites to Check Out | |
| |
| |
Not-to-Be-Missed Newsgroups | |
| |
| |
| |
Ten (Or So) Most Common JavaScript Mistakes (And How to Avoid Them) | |
| |
| |
Typing-in-a-Hurry Errors | |
| |
| |
Breaking Up a Happy Pair | |
| |
| |
Putting Scripting Statements in the Wrong Places | |
| |
| |
Nesting Quotes Incorrectly | |
| |
| |
Treating Numbers as Strings | |
| |
| |
Treating Strings as Numbers | |
| |
| |
Missing the Point: Logic Errors | |
| |
| |
Neglecting Browser Incompatibility | |
| |
| |
| |
Ten (Or So) Tips for Debugging Your Scripts | |
| |
| |
JavaScript Reads Your Code, Not Your Mind! | |
| |
| |
Isolating the Bug | |
| |
| |
Consulting the Documentation | |
| |
| |
Displaying Variable Values | |
| |
| |
Breaking Large Blocks of Statements into Smaller Functions | |
| |
| |
Honing the Process of Elimination | |
| |
| |
Taking Advantage of Others' Experience | |
| |
| |
Exercising the Time-Honored Trial-and-Error Approach | |
| |
| |
Just Try and Catch Me Exception Handling! | |
| |
| |
Taking Advantage of Debugging Tools | |
| |
| |
| |
Appendixes | |
| |
| |
| |
JavaScript Reserved Words | |
| |
| |
| |
JavaScript Color Values | |
| |
| |
| |
Document Object Model Reference | |
| |
| |
The Document Object Model | |
| |
| |
Global Properties | |
| |
| |
Built-In JavaScript Functions | |
| |
| |
| |
Special Characters | |
| |
| |
| |
About the CD | |
| |
| |
Getting the Most from This CD | |
| |
| |
System Requirements | |
| |
| |
Using the CD | |
| |
| |
JavaScript For Dummies Chapter Files | |
| |
| |
What You'll Find | |
| |
| |
If You Have Problems (Of the CD Kind) | |
| |
| |
Index | |