Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <script type="text/javascript" language="javascript">
- function conf()
- {
- var temp=document.getElementById('ageTxt');
- var bln=confirm("Your age is : " + temp.value + " ?");
- if(bln)
- alert("You may proceed.");
- else
- alert("Not an acceptable age");
- }
- </script>
- </head>
- <body>
- <input type="text" id="ageTxt">
- <button type="button" onclick="conf()">Validate</button>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement