Monday, January 1, 2018

How To Verify Age Using Html

Here In This Html Tutorial We Will  Create A Form Related To Verify Age Using Html/Javascript Code.

In This Blog I will Create A Form Related To Verify Age.

Here Is An Example Related To Topic.......

Step 1:

<html>
<head>
<script>
function verify(){
var no;
no=Number(document.getElementById("age").value);
if(no<18)
{
alert("Under 18");
}
else
{
alert("You are Adult");
}
}
</script>
</head>
<body>
Enter your age:<input id="age"><br />
<button onclick="verify()">Click me</button>
</body>
</html>

Output :


1 comment:

How To Create Image Gallery In Html

Hello Friend My Name Is Viraj,Today I Will Create Image Gallery And Display On A Webpage.The emergence of CSS3 technology has enabled web d...