Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
JavaScript DOM Example code Interactive Dynamic JavaScript
Rating: 4.5 out of 5(59 ratings)
4,838 students

JavaScript DOM Example code Interactive Dynamic JavaScript

Create Dynamic and Interactive web pages with JavaScript and the DOM
Created byLaurence Svekis
Last updated 11/2024
English
English [Auto],

What you'll learn

  • Write the basics of JavaScript
  • Add JavaScript to web pages and make them interactive
  • Select and manipulate elements

Course content

2 sections37 lectures1h 50m total length
  • DOM Course Introduction2:40

    Explore the document object model and JavaScript to enliven HTML pages. Inspect the DOM with developer tools, then add, remove items, and pass through secret object messages.

  • JavaScript DOM Dev Setup3:29

    Set up your browser and editor to follow along with browser-based JavaScript and HTML element interactions, using Chrome DevTools console, inspect, and Brackets editor for writing and testing code.

  • What is the DOM4:15

    Learn how the browser constructs the document object model from page elements, enabling JavaScript to interact with content, inspect the DOM with developer tools, and manipulate elements and events.

  • Source Code what is DOM
  • DOM Manipulation8:20

    Explore dom manipulation by selecting elements with querySelectorAll and querySelector, updating content and styles, and comparing innerHTML and innerText through hands-on examples.

  • Source Code DOM-Manipulation0:27
  • JavaScript DOM Selection7:00

    Learn how to select elements in the document object model, using methods like getElementById, by tag name, by class name, and querySelector, and understand node list and applying yellow styles.

  • Source Code JavaScript DOM Selection0:29
  • Element Text Manipulation5:47

    Learn to select an element with document.querySelector, examine its textContent, innerText, and innerHTML, and compare outerHTML, which can replace the element and remove the item from the list.

  • Source Code Element Text Manipulation0:27
  • Change Classes DOM6:10

    Learn to manipulate a page element's classes with JavaScript by selecting the element, applying, removing, and toggling classes via className or classList to switch red and blue themes.

  • Source Code Change Class DOM0:11
  • Change Styles DOM6:08

    Select elements by class name, target the first node, and apply inline styles with element.style using properties like color, backgroundColor, fontSize, and display.

  • Source Code Change Styles DOM0:14
  • Element Attribute Manipulation7:08

    Learn to grab and update element attributes in JavaScript by using getAttribute and setAttribute on images and hyperlinks, including swapping image sources and href values.

  • Source code Element Attribute Manipulation0:13
  • Interactive DOM Events3:13

    Learn to make web pages interactive with JavaScript by selecting a list, attaching a click event listener, and updating the background color or logging clicks to the console.

  • Use DOM Select Multiple Elements5:36

    Learn how to select multiple list items with querySelectorAll, iterate with length, attach click listeners, and toggle a red class using this on each item.

  • Source Code Multiple Element Selection0:15
  • JavaScript DOM KeyPress Events5:03

    selects the input by name, attaches a key press event, logs the item, and triggers actions on enter, including updating the list background and validating input length.

  • Source Code eventKeyPress0:14
  • DOM Mouse Events2:42

    Explore dom mouse events by selecting list items, looping through them, and attaching mouseover and mouseout listeners that toggle a red class to recreate a css hover effect with javascript.

  • Source code mouse events0:12
  • Create your own Elements5:04

    Create dynamic dom elements with javascript by selecting a clicker, handling clicks, creating elements and text nodes, and appending them to an unordered list.

  • Source Code create elements0:17
  • Event listeners to New elements3:42

    Learn to attach event listeners to all list items, including dynamically created ones, enabling click interactions that apply red styling, text-decoration, and toggle behavior with real-time updates.

  • Source Code Event listeners0:13
  • JavaScript DOM Create Dynamic List5:13

    Create dynamic elements with event listeners, toggling and removing them in the DOM. Build spans with an X, traverse to the parent, and append new elements on input enter.

  • List Project JavaScript DOM Input add new Element.3:38

    Remove the click me button and enable adding items by pressing enter; select input with querySelector, listen for keypress, append input value to the dom list, and clear field.

  • Source Code List Project Source0:27
  • Bonus Adding Object Value2:41

    Learn to attach hidden values to dynamically created DOM elements, retrieve them on user interaction, and reuse object-like properties to enrich on-the-fly interactivity in JavaScript.

  • Source Adding Values to the DOM0:29

Requirements

  • HTML and CSS
  • JavaScript Basics
  • Internet Access
  • Desire to learn about JavaScript

Description

Learn how to make web-pages Dynamic and Interactive using JavaScript to connect with the Document Object Model and influence and manipulate page elements.

The Document Object Model is a Massive object that represents your page elements and their attributes.  JavaScript can easily select objects within the DOM and use the content to change the display, add interactive events, update styling and a whole lot more.   JavaScript makes your webpage come to life.    JavaScript gives you the ability to open up that door and make amazing things happen on your website.  This course covers only the JavaScript Document Object Model and prior JavaScript knowledge is a prerequisite to this course.​

Packed with Source Code and Exercises so you can try the same code from the lessons!!!

Bonus 2 PDF ebooks also included containing information about Object in JavaScript and the DOM

Course covers

  • Selecting elements within the DOM

  • Manipulating element content and text output

  • Adding styling and classes using JavaScript

  • Event Listeners to add user interaction to your web content

  • Building and creating elements with JavaScript

  • Build an interactive list project from scratch

JavaScript is the technology that makes things happen online.  Learn how to create Dynamic and Interactive web pages applying JavaScript with the DOM. 

Taught by an instructor with over 20 years of web development experience, ready to help you learn and answer any questions you may have.

What are you waiting join now to start learning JavaScript Document Object Model, you have nothing to lose.

Who this course is for:

  • Anyone who wants to learn more about JavaScript
  • Web Developers
  • Front end application Developers
  • Anyone who wants to practice and learn how to make websites interactive