Advertisement
wzul

zaemy

Apr 12th, 2017
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.43 KB | None | 0 0
  1. <html>
  2.     <body>
  3.         <script>
  4.             function validateForm(){
  5.                 var x = document.forms['hehe']['ayam'].value;
  6.                 window.alert(x);
  7.                 return false;
  8.             }
  9.         </script>
  10.         <form name="hehe" method="post" onsubmit="return validateForm()" >
  11.  
  12.             <input type="text" name="ayam">
  13.             <input type="submit">
  14.         </form>
  15.  
  16.     </body>
  17.  
  18. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement