Create a new webpage that introduces interactivity and basic document object model manipulation using JavaScript. Do not build off of your previous assignments.
csc336-fall2025/03-js-dom-basicsindex.htmlstyle.cssscript.jsdocument.getElementById
or document.querySelector
to access html elements.
document.createElement
at least once to add something new to the page.In addition to meeting the technical requirements, your webpage should include a creative interactive element. This is open-ended, but it must involve user input and JavaScript changes to the page. Some possible ideas:
You do not need to use one of these examples — come up with something fun, interesting, or unusual that shows off your ability to manipulate the DOM with JavaScript.
First, here are the two examples from class: Simple Example, More Complex Example, and Most In-Depth Example.
These two examples demonstrate how to satisfy the requirement for the assignment. Using developer tools, look at the code for this assignment webpage to see how the below example work.
This text will change when the button is clicked.