daily pastebin goal
5%
SHARE
TWEET

Untitled

a guest Sep 24th, 2018 64 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4.   <meta charset="utf-8">
  5.   <meta name="viewport" content="width=device-width">
  6.   <title>Adding new elements to the DOM</title>
  7. </head>
  8. <body>
  9.   <label for="newNumber">Please enter a number</label>
  10.   <input type="number" id="newNumber" value=0>
  11.   <button onclick="add()">Add to the list</button>
  12.   <br>
  13.   <button onclick="reset();">Reset list</button>
  14.  
  15. <p>You entered:</p>
  16. <ul id="numbers"></ul>
  17. </body>
  18. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top