Understanding the DOM



Download free course Understanding the DOM, pdf file on 126 pages by Tania Rascia.
JavaScript is the de facto programming language of the web, but the language itself does not include any built-in method for working with input/output (I/O), such as graphics display and sound. Instead, the web browser provides an API for accessing the HTML document in a tree structure known as the Document Object Model (DOM). The combination of JavaScript and the DOM is what allows us to create interactive, dynamic websites.

Many modern frameworks, such as React, Vue, and Svelte abstract away much of the DOM from the developer, but frameworks also use the DOM under the hood. The JavaScript library jQuery was also created to make working with the DOM easier, but the modern development practice is to work with the DOM directly. In order to be a proficient web developer, having a deep understanding of what the DOM is and how to work with it is essential. The goal of this book is to provide a base understanding of the DOM, as well as explore examples of the most common and useful methods for interacting with the DOM.

The topics that it covers include:
- The DOM and DOM tree structure;
- How to access, traverse, and modify nodes and elements in the DOM;
- How to modify attributes, classes, and styles in the DOM;
- Use events to make interactive, dynamic websites.

Each chapter is self-contained and can be followed independently of the others. However, if you are not yet familiar with the concept of the DOM and DOM tree, it is recommended that you read the introductory chapters first.

Table of contents

  • Introduction to the DOM
  • Understanding the DOM Tree and Nodes
  • How To Access Elements in the DOM
  • How To Traverse the DOM
  • How To Make Changes to the DOM
  • How To Modify Attributes, Classes, and Styles in the DOM
  • Understanding Events in JavaScript
Pages126
Size3.4 MB
File typePDF
Downloads202
Created2022-02-03
LicenseCC BY-NC-SA
Author(s) Tania Rascia
Cover of Understanding the DOM

Download

  • Eloquent JavaScript: A Modern Introduction to Programming

    JavaScript lies at the heart of almost every modern web application, from social apps to the newest browser-based games. Though simple for beginners to pick up and play with, JavaScript is a flexible, complex language that you can use to build full-scale applications. ...

  • The Vue.js Handbook

    Vue.js is a very impressive project. It's a very popular JavaScript framework, one that's ..., download free Vue.js tutorial in PDF (122 pages) created by ....

  • Angular Succinctly

    Download free course Angular Succinctly, pdf file on 124 pages by by Joseph D. Booth....

  • Reactive Data Handling

    We depend on web applications to be highly-available and to provide us with up-to-the-seco..., download free React tutorial in PDF (139 pages) created by ....

  • Hacking Exposed Web Applications

    Download free course Hacking Exposed Web Applications, pdf file on 416 pages by Joel Scambray, Mike Shema....

  • You Don't Know JS Yet: Get Started - 2nd Edition

    It's easy to learn parts of JavaScript, but much harder to learn it completely or even sufficiently whether you're new to the language or have used it for years. With the "You Don't Know JS" book series, you'll get a more complete understanding of JavaScript, including trickier parts of the language...

  • AJAX basics

    This tutorial provides some basics Ajax process ,training document in PDF under 38 pages for beginners....

  • Angular 2+ Notes for Professionals

    Download free course Angular 2+ Notes for Professionals, pdf file on 232 pages by by Stack Overflow Community....

  • AngularJS Web Application Development Cookbook

    Packed with easy-to-follow recipes, this practical guide will show you how to unleash the ..., download free Angular tutorial in PDF (346 pages) created by Matt Frisbie ....

  • W3.CSS Succinctly

    Download free course W3.CSS Succinctly, pdf file on 85 pages by Joseph D. Booth....