So I am making a login page for my website for admins and it has just one set password and it worked but when I tried to check if it would kick me out and it just sends me to the Admin page and not asking me for a password
this is my code:
</head>
<body>
<h1>This is Admin only</h1>
<form id="password">
<input type="password" name="Admin password" id="ADMIN_PASS">
</form>
<script>
var password = "password"
if (password = "ADMINPASS"){
var password = 0
location.href='ADMIN.html'
}else{
print('incorrect')
location.href='Adminlogin.html'
}
</script>