Verify Age Program in JavaScript

Prev Tutorial Next Tutorial

JavaScript Program to Verify Age

Here we write a simple program in JavaScript to verify age of any person, if age is greater than 18 show message adult otherwise show under 18.

JavaScript Example to Verify Age


function verify(){
var no;
alert("Under 18");
alert("You are Adult");
Enter your age:<input id="age"><br />
<button onclick="verify()">Click me</button>


Enter your age:

Prev Tutorial Next Tutorial

Google Advertisements

Download Projects

Google Adsense Advertisements

Buy 3 Year Old Domain,, @$200

Buy This Ad Space @$50 per Month, Ad Size 300X250 Contact on: WhatsApp no. 8882538826

Yahoo Advertisements