Make the Page Talk Back
Explore how JavaScript works with HTML to update page content dynamically. Learn to select elements by ID and change their text using innerText, enabling your web page to respond and interact with users in real time.
We'll cover the following...
We'll cover the following...
Now that you’ve said hello to the browser, it’s time to get the web page itself to talk back to you.
You’ll learn how to grab something on the page and change what it says using JavaScript.
Goal
You’ll aim to:
Use JavaScript to change what appears on the page.
Understand
document.getElementById()and.innerText.Start interacting with real HTML. ... ...