Advertisement
lessientelrunya

buggydom1

Jul 20th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 0.48 KB | None | 0 0
  1. <!DOCTYPE html>
  2.  
  3. <html>
  4.     <head>
  5.         <script>
  6.  
  7.             document.getElementById('demo').onsubmit = function() {
  8.                 alert('hello, ' + document.getElementById('name').value + '!');
  9.                 return false;
  10.             };
  11.  
  12.         </script>
  13.         <title>dom1</title>
  14.     </head>
  15.     <body>
  16.         <form id="demo">
  17.             <input id="name" placeholder="Name" type="text"/>
  18.             <input type="submit"/>
  19.         </form>
  20.     </body>
  21. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement