HTML click box question?

Comoregion

New member
I have this code so far:


<input type="checkbox" onclick="var password = prompt('Enter Password',''); if (password != '123456789') { checked = false }">This is a question


But I want to make it so that if the password is wrong, then the page redirects to another. Thanks in advance
 
Back
Top