<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>JS Bin</title> </head> <body> <label for="age1">Enter your age</label> <input type="text" name="age"> </input> <button type="submit" name="Enter" > Enter </button> </body> <script type="text/javascript" > function verify() { var userage = parseInt(document.getElementById("age").value); alert (userage) ; } </script> </html>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)