9 lines
416 B
JavaScript
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); |