#So when you type in a password and login i need to know how to make it transfer to a new GUI (HTML)
6 messages · Page 1 of 1 (latest)
I assume this is your expectation code? Although, I admit it's not secure to do this.
document.getElementById('myForm').addEventListener('submit', function(e) {
e.preventDefault(); // This simply makes the form to be prevented from submitting normally.
var pass = document.getElementById('password').value;
if(pass === 'funni') {
// Lead user to the site
window.location.href = 'https://[the_site]';
}
});
Yeah, have you tested it out?
Alright. Lmk when it works or not.
What @turbid glade1673 said is correct, add a script tag to wrap the code.
╮(╯-╰)╭