Files
blackroad-io-site/script.js
2025-10-24 22:05:56 +00:00

12 lines
338 B
JavaScript

function handleLogin(event) {
event.preventDefault();
const username = document.getElementById('username').value.trim();
const password = document.getElementById('password').value.trim();
if (username && password) {
window.location.href = 'index.html';
} else {
alert('Please enter both username and password.');
}
}