GameHub/scripty/login.js
2024-06-06 09:10:12 +02:00

9 lines
416 B
JavaScript

document.addEventListener('DOMContentLoaded', function() {
document.getElementById('login-form').addEventListener('submit', function(event) {
event.preventDefault();
var username = document.getElementById('login-username').value;
var password = document.getElementById('login-password').value;
console.log('Username:', username);
console.log('Password:', password);
});
}, false);