Skip to content
concept

DOM Manipulation

Selecting, reading, creating, removing, or updating document elements and their content or presentation with JavaScript.

Tagged articles

DOM Manipulation articles

27 articles in this tag.

Dramatic aerial view of Panama City skyline during sunset showcasing modern skyscrapers.
beginner
10 min read

Build a Click Counter

There's a moment in learning JavaScript when things stop being abstract. You've studied variables and functions. You've followed along with examples. But…

Read tutorial
Close-up of a tropical flower with vibrant red and yellow petals in vivid detail.
beginner
13 min read

Build a JavaScript Quiz App

You've learned arrays, conditionals, click events, and DOM updates as separate lessons. Now it's time to see them work together. A quiz app is the perfect…

Read tutorial
Businesswoman working on laptop with Android 6.0 Marshmallow webpage open.
beginner
12 min read

Build a Simple Calculator

A calculator is not smart. It just remembers two numbers and one operator between clicks. Once you see that, the whole project becomes simple—and you will…

Read tutorial
From above of surface of wavy blue sea on sunny day as background
beginner
8 min read

Changing DOM Content

A static page is a finished product. A dynamic page is a conversation: the user clicks, submits, or types, and the page answers. That answer usually means…

Read tutorial
A university student in a cap studying alone in an empty classroom, lit by natural sunlight.
beginner
10 min read

Create a Random Quote Generator

Click a button. Watch the page change. That small moment—where your JavaScript stops just running and starts doing something visible—is the bridge between…

Read tutorial
A stunning view of a bright blue sky filled with fluffy clouds, capturing a serene and peaceful atmosphere.
beginner
8 min read

Creating and Removing Elements

A static HTML page is frozen the moment it loads. Real sites keep changing after that—a to-do item appears, a cart entry disappears, a new message slides…

Read tutorial
A busy urban street scene in Rome, Italy, showcasing iconic historic architecture and vibrant city life.
beginner
7 min read

Handling Click Events

You have a button on your page. You want something to happen when someone clicks it. That moment—when a static page starts responding—is where JavaScript…

Read tutorial
Overhead view of a traditional leather tannery in Fes with various color dye pits.
beginner
8 min read

Using JavaScript in HTML Pages

A web page is three layers doing one job. HTML builds the structure, CSS styles it, and JavaScript makes it respond. This tutorial shows you how to add…

Read tutorial
Asian students in uniform learning in a computer lab, focused on their tasks.
beginner
12 min read

Make a Simple To-Do List

A to-do list is the first app where your page stops being a static document and starts remembering what the user does. Same event-listening idea as a click…

Read tutorial
A vast desert landscape featuring acacia and palm trees under a clear blue sky.
beginner
10 min read

Practical DOM Examples

You have learned how to select elements, change their content, update their styles, and create new elements from scratch. Each of those skills makes sense…

Read tutorial
Teacher conducting a lesson with engaged students in a modern classroom setting.
beginner
10 min read

Selecting DOM Elements

You cannot change an element you cannot reach. Every update, style change, and click response on a web page starts with one act of finding. JavaScript…

Read tutorial
Close-up of hands typing on a colorful RGB backlit mechanical keyboard in a dimly lit environment.
beginner
7 min read

What is the DOM?

Your HTML file is just text. It sits on disk, perfectly still, until a browser reads it. Yet the page you're looking at right now can change—text updates,…

Read tutorial