Username or email *
Password *
Remember Me
Log in
No products in the cart.
What is the DOM?
Selecting and changing elements with JS
Change the text of an HTML element using JavaScript
<p id="demo">Old Text</p> <button onclick="changeText()">Click Me</button> <script> function changeText() { document.getElementById("demo").innerText = "New Text!"; } </script>
<script> function changeText() { document.getElementById("demo").innerText = "New Text!"; } </script>