GameHub/scripty/login.js
2024-04-21 12:48:12 +02:00

12 lines
615 B
JavaScript

document.addEventListener('DOMContentLoaded', function() {
document.getElementById('login-form').addEventListener('submit', function(event) {
event.preventDefault();
// Get values from the form
var username = document.getElementById('login-username').value;
var password = document.getElementById('login-password').value;
// Here you would perform login authentication, for demonstration purposes let's just log the values
console.log('Username:', username);
console.log('Password:', password);
// Redirect to dashboard or perform further actions
});
}, false);