function validateCode() {
var code = document.getElementById("accessCode").value;
if(code == "YOUR_SECRET_CODE") {
// do something when the code is correct
alert("Access granted!");
} else {
alert("Invalid code!");
}
}
function validateCode() {
var code = document.getElementById("accessCode").value;
if(code == "YOUR_SECRET_CODE") {
// do something when the code is correct
alert("Access granted!");
} else {
alert("Invalid code!");
}
}