14 lines
713 B
JavaScript
14 lines
713 B
JavaScript
|
document.addEventListener('DOMContentLoaded', function() {
|
||
|
document.getElementById('signup-form').addEventListener('submit', function(event) {
|
||
|
event.preventDefault();
|
||
|
// Get values from the form
|
||
|
var username = document.getElementById('signup-username').value;
|
||
|
var email = document.getElementById('signup-email').value;
|
||
|
var password = document.getElementById('signup-password').value;
|
||
|
// Here you would perform signup action, for demonstration purposes let's just log the values
|
||
|
console.log('Username:', username);
|
||
|
console.log('Email:', email);
|
||
|
console.log('Password:', password);
|
||
|
// Redirect to login page or perform further actions
|
||
|
});
|
||
|
}, false);
|