[...]... 11 JavaScript Libraries 11 Let’s Get Started! 12 x Simply JavaScript Chapter 2 Programming with JavaScript 13 Running a JavaScript Program 14 Statements: Bite-sized Chunks for your Browser 17 Comments: Bite-sized Chunks Just... 11 2 The Problem with Event Handlers 11 5 Event Listeners 11 6 Default Actions 11 9 Event Propagation 12 2 The this Keyword 12 7 The Internet Explorer Memory Leak 12 8 Putting it... 10 0 Dojo 10 2 Summary 10 2 Chapter 4 Events 10 5 An Eventful History 10 6 Event Handlers 10 7 Default Actions 11 1 The this Keyword... 19 8 Making the Accordion Look Like it’s Animated 19 8 Changing the Code 19 9 Exploring Libraries 208 script.aculo.us 208 Summary 211 Simply JavaScript (www.sitepoint.com) Simply JavaScript Chapter... 16 0 Chapter 5 Animation 16 3 The Principles of Animation 16 3 Controlling Time with JavaScript 16 5 Using Variables with setTimeout 16 8 Stopping the Timer 17 2 Creating a Repeating Timer 17 4 Stopping... 17 5 Revisiting Rich Tooltips 17 5 Old-school Animation in a New-school Style 17 6 Path-based Motion 18 1 Animating in Two Dimensions 19 0 Creating Realistic Movement 19 2 Moving Ahead 19 8 Revisiting... xii Simply JavaScript Example: Accordion 14 4 The Static Page 14 4 The Workhorse Methods 14 6 The Dynamic Styles 14 8 Putting it All Together 15 0 Exploring Libraries 15 8... 12 9 Example: Rich Tooltips 13 2 The Static Page 13 3 Making Things Happen 13 4 The Workhorse Methods 13 5 The Dynamic Styles 14 0 Putting it All Together 14 2 Order the... with Attributes 82 Changing Styles 85 Changing Styles with Class 87 Simply JavaScript (www.sitepoint.com) Simply JavaScript xi Example: Making Stripy Tables 92 Finding All Tables with Class dataTable 93 Getting the Table Rows for Each Table... Warnings xxiv Chapter 1 The Three Layers of the Web 1 Keep ’em Separated 2 Three Layers 4 HTML for Content 6 CSS for Presentation 8 JavaScript for Behavior . Preface xvii 1. The Three Layers of the Web 1 2. Programming with JavaScript 13 3. Document Access 61 Index 387 Summary of Additional Book Contents 4. Events 10 5 5. Animation 16 3 6. Form. . 11 1 The this Keyword . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 2 The Problem with Event Handlers . . . . . . . . . . . . . . . . . . . . . . . . . . 11 5 Event. . . . . . . . . . . . . . . . 211 Simply JavaScript (www.sitepoint.com) Simply JavaScriptxii Chapter 6 Form Enhancements . . . . . . . . . . . . . . . . . . . 213 HTML DOM Extensions . . . .