<html>

<head>
<title>CodeLibary.com Age verification</title>
<script language="javascript">
var agePrompt=prompt("What is your age?");

if (agePrompt>=18) alert('Welcome!')
else {
alert('Sorry! Come back in a few years!')
document.location="http://www.codelibary.com/";

}
</script>
</head>

<body>
<p align="center">This is an age verification script that will let you in if you're 18 or older, send you away if you're a younger kid.
</p>
</body>
</html>
Published in: JavaScript
Download

Related snippets