ppk on JavaScript - Table of Contents

Cover of my book

Peter-Paul Koch, ppk on JavaScript, 1st edition, New Riders, 2006. ISBN 0321423305.
Peachpit information page.

Back to the Book homepage.

To give you an idea of what the book treats, here's the table of contents.

  1. Words of Thanks iii
  2. Contents at a glance iv
  3. Contents v
  4. Introduction xviii
  1. PURPOSE 1
    1. Conceptual overview 2
    2. Technical overview 8
    3. JavaScript history 16
  2. CONTEXT 27
    1. The CSS revolution 28
    2. Separation of presentation and structure 33
    3. Separation of behavior and structure 36
    4. Separation of behavior and presentation 39
    5. Accessibility overview 44
    6. Rules of accessibility 51
    7. The example scripts 57
  3. BROWSERS 67
    1. The browsers 68
    2. Incompatibilities 73
    3. Object detection 79
    4. Browser detection 83
    5. Debugging 93
  4. PREPARATION 105
    1. HTML and CSS structure 106
    2. Hooks 108
    3. Preparing the page 115
    4. The <script> tag 120
    5. Initialization 123
    6. The example scripts 128
  5. CORE 141
    1. The basics 144
    2. Data types 152
    3. Common operators 161
    4. Variables 168
    5. Working with numbers 172
    6. Working with strings 177
    7. Working with booleans 184
    8. Control structures 192
    9. Functions 209
    10. Objects 219
    11. Associative arrays 227
    12. Arrays 232
  6. BOM (Browser Object Model) 239
    1. The window object 241
    2. Cross-window communication 249
    3. Navigation 259
    4. Window geometry 262
    5. Miscellaneous 265
    6. The document object 269
    7. Cookies 274
  7. EVENTS 283
    1. Browser incompatibilities 284
    2. The events 286
    3. Event handler registration 300
    4. Event bubbling and capturing 310
    5. The event object and its properties 316
    6. Targeting 323
    7. The example scripts 334
    8. Dropdown Menu, mouseout, and the related target 343
  8. DOM (Document Object Model) 349
    1. Concepts 351
    2. Finding elements 355
    3. Node information 362
    4. Changing the document tree 365
    5. Creating and cloning elements 373
    6. innerHTML 380
    7. Attributes 389
    8. Text nodes 394
    9. nodeLists 399
    10. Forms and the Level 0 DOM 403
    11. DOM hyperspace 412
    12. Markers 417
  9. CSS MODIFICATION 419
    1. The style property 420
    2. Changing classes and ids 426
    3. Writing CSS into the page 430
    4. Changing entire style sheets 434
    5. Comparison 443
    6. Showing and hiding elements 445
    7. Animations 450
    8. Finding an element's dimensions and position 457
  10. DATA RETRIEVAL 463
    1. Sending the request 464
    2. Handling the response 472
    3. The response format 476
    4. Accessibility 483
  11. AFTERWORD: The future of JavaScript 489
  12. Index 491