Code Examples

  1. A brief history of JavaScript

  2. JavaScript Syntax

  3. The Document Object Model

    • Test: alert title attribute
  4. A JavaScript image gallery

  5. Best Practices

    • Example: unobtrusive popup window
  6. Image Gallery Revisited

  7. Creating markup on the fly

    • Test: document.write inline
    • Test: document.write external
    • Test: alert innerHTML
    • Test: updating innerHTML
    • Test: alert node info
    • Test: createElement
    • Test: createTextNode
    • Test: appendChild
    • Test: documentFragments
    • Test: documentFragments
  8. Enhancing content

  9. CSS-DOM

  10. Animated Slideshow

  11. Putting it all together

  12. The Future of DOM Scripting