Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
JavaScript DOM Course Dynamic Interactive webpages beginners
Rating: 4.4 out of 5(65 ratings)
5,422 students

JavaScript DOM Course Dynamic Interactive webpages beginners

Learn to create Dynamic and Interactive web pages using JavaScript. JavaScript Document Object Model - For Beginners
Created byLaurence Svekis
Last updated 11/2024
English
English [Auto],

What you'll learn

  • How to apply JavaScript
  • Use of JavaScript
  • Making web pages interactive
  • How to make website dynamic

Course content

2 sections55 lectures2h 32m total length
  • Introduction to JavaScript DOM course4:48

    Explore the document object model with JavaScript to select elements using querySelector and querySelectorAll, update content and attributes, and create new elements for dynamic web pages.

  • Resource Guide0:11
  • Setup Developer Environment2:13

    Set up your developer environment for beginners by choosing a code editor (brackets or another) and Chrome, and learn to use devtools (Elements and Console) to run JavaScript with HTML.

  • create an index page5:03

    Create an index page and link it to a JavaScript file, learning HTML structure, DOM basics, and using document.write, getElementById, and console logs to manipulate content and console output.

  • Script file JS1:59

    Learn how JavaScript interacts with the document object model, link a script file, and place it at the bottom to ensure content loads before interaction.

  • Source Code0:05
  • Console Log Options5:00

    Explore the JavaScript console options like info, warn, debug, and error, log and style messages, and retrieve element text with getElementById and textContent for debugging interactive pages.

  • Source Code0:05
  • JS Document Object.6:03

    Explore the document object and the dom tree, learn to select elements and manipulate page content with JavaScript by updating the body and inspecting nodes with console tools.

  • Source Code for html index page that can be used as a sample webpage1:14
  • Selecting Elements4:58

    Learn to select and manipulate DOM elements using querySelector, targeting IDs, classes, and various HTML elements, then update text content to reflect changes.

  • Source Code0:01
  • Selection by tag5:21

    Explore selecting and manipulating page elements with the document object model, using query selector and get elements by tag name to update text content across single and multiple elements.

  • Source Code0:05
  • querySelector3:53

    Learn to select elements on the page using document.querySelector, including by tag, class, and id, and observe how multiple references point to the same element and reflect changes.

  • Source Code0:03
  • querySelectorAll5:00

    Explore how querySelectorAll selects all elements matching a group of selectors, returns a non-live node list, and supports looping to update inner HTML or text content.

  • Source Code0:06
  • Complex CSS querySelectorAll.5:44

    Use complex css selectors with querySelectorAll to find all hyperlinks and filter by href content containing GST. Update link text and URLs, and narrow results within a container using querySelector.

  • Source Code0:06
  • Update Images3:11

    Select images by tag name or querySelectorAll, loop through the NodeList, and dynamically update image properties such as height and title from alt tags, applying changes to multiple images.

  • Source Code0:04
  • ChildNodes Children and more9:09

    Traverse the DOM using child nodes and children, distinguishing node types such as elements, text nodes, and comments. Practice selecting with tag or selector and compare HTML collection with node list.

  • Source Code0:07
  • Element Style Update3:42

    Select an element by its id and update its content. Then use the element's style object to change properties like background color, font family, border, padding, and display.

  • Multi Element Style Update.3:56

    Learn to select multiple elements by class, loop through them with a for loop, and apply inline styles such as text-align center, color blue, background red, and borders.

  • Source Code0:06
  • Add Classes to Elements7:35

    Learn to apply and manage css classes on dom elements by selecting all elements with the row class, then using className or classList to add red or blue and toggle.

  • Source Code0:05
  • Set Attribute.2:29

    Learn how to select a button with querySelector, set and remove attributes like id, log attribute values to the console, and observe how removing an attribute affects the element.

  • Source Code0:02
  • JavaScript Create Element3:52

    Learn to create and append new DOM elements with document.createElement, text nodes, and appendChild, update content, and set attributes like id and class inside an existing ul.

  • Source Code0:04
  • append and prepend6:57

    Master dom manipulation by appending and prepending content to a container, creating elements with create element, and comparing appending as html strings versus updating innerHTML.

  • Source Code0:09
  • AddEvent Listeners3:46

    Learn to add event listeners to HTML buttons, select elements with querySelector, update text and styling, log clicks to console, and increment a counter to refresh content.

  • Source Code0:06
  • AddEvent Mulitple Listeners5:32

    Attach multiple event listeners to all page buttons using querySelectorAll, loop through them, and update click counts, text, and styles. Explore event object, target, and capture versus bubble phases.

  • Source Code0:07
  • Mouse move events.3:06

    Track mouse move events in the DOM by selecting elements with querySelector, attaching a mousemove listener, and updating the header with the mouse's X and Y coordinates on the page.

  • Source Code0:05
  • Fun with Images5:12

    Create ten dynamic images with random colors, display a hello world label, and attach click listeners to update each image with a new random color.

  • Source Code0:12
  • Fun with Images part 22:19

    Make images clickable by attaching event listeners during creation, and update their source with a generated random color value as you loop through the images.

  • Source Code0:10
  • Form Values5:12

    Select form inputs with querySelector by name, retain object references to access live values, prevent default submit, and display the name and email in the header.

  • Source Code0:06
  • Annoying Blinker5:40

    Build the annoying blinker by wiring an interval-based text color toggle and random hex background change, controlled with start and stop buttons using query selectors and event listeners.

  • Source Code0:09
  • Animation JavaScript.8:53

    Learn how to animate an on-page element with requestAnimationFrame, toggle movement direction on click, and control start-stop state using a Storper flag and dynamic styling.

  • Source Code0:15
  • DOM Conclusion0:30

    Access the resource guide with source code and useful links to practice the code you learned in the earlier lessons, and post questions in the Q&A for further help.

Requirements

  • HTML and CSS
  • Basics of JavaScript coding
  • Desire to learn JavaScript
  • Fundamental JavaScript

Description

Learn about how JavaScript can be used to apply interaction and dynamic content to web pages.

Please note that JavaScript - HTML and CSS are prerequisites to this course

Scope of this course is to cover JavaScript and how it can be used to select elements from the web page.  Create new element, updates elements and manipulate elements directly using JavaScript.  Explore how easy it is to make your website come to life.  Using the DOM Document Object Model connect to the elements via JavaScript.

  • Explore how JS can be added to web pages

  • Learn about console and debugging with JavaScript

  • Find out more about DOM Document Object Model

  • Use JavaScript to select elements from the page

  • Select multiple elements from the page

  • Update element attributes

  • Update element style properties and values

  • Add classes and manipulate element class values.

  • Learn how to create elements using JavaScript and add them to a webpage

  • Create interaction using event listeners in JavaScript

  • Form values

  • Mini projects to highlight what was learned

  • Source code is inlcuded

try the code for yourself and explore what you can do with JavaScript

Fast Friendly support to help answer any questions you might have and to help clarify content is always available in the Q&A section.  Taught by an instructor with over 20 years real world experience ready to help you learn more.  Step by step training resources and source code is also included to get you started quickly.

Who this course is for:

  • Web developers
  • Web designers
  • Anyone who wants to learn how to make interactive web applications