You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
446 B
22 lines
446 B
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<script>
|
|
function validator(){
|
|
if(document.buckyForm.thebox.checked){
|
|
alert("Yes its checked!");
|
|
} else {
|
|
alert("No its not checked!");
|
|
}
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<form name="buckyForm">
|
|
<label for="thebox">The box</label>
|
|
<input id="thebox" type="checkbox" name="thebox"/>
|
|
<input type="button" value="Press me!" onClick="validator();"/>
|
|
</form>
|
|
</body>
|
|
</html>
|