Make the Page Talk Back
Access elements and change their content with JavaScript.
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. ...