
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.
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 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.
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.
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.
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.
Learn to select and manipulate DOM elements using querySelector, targeting IDs, classes, and various HTML elements, then update text content to reflect changes.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Learn to create and insert page elements with JavaScript, using createElement, textContent, and methods like append, appendChild, before, after, and prepend to build dynamic lists.
Explore arrow functions in JavaScript (ES6), a concise fat arrow syntax for anonymous functions with implicit returns and one-expression forms, used in objects and in setTimeout.
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.