diff --git a/assets/HypertextPages/login.nytl.html b/assets/HypertextPages/login.nytl.html
index 674f42b..56c161e 100644
--- a/assets/HypertextPages/login.nytl.html
+++ b/assets/HypertextPages/login.nytl.html
@@ -6,18 +6,17 @@
{% WRITE pres.phr.decl.page-login %}
-
+
-{% PUT pass-pres-userinfo pres userinfo %}
{% WRITE pres.phr.decl.enter %}
diff --git a/assets/js/login.js b/assets/js/login.js
new file mode 100644
index 0000000..fd826a6
--- /dev/null
+++ b/assets/js/login.js
@@ -0,0 +1,14 @@
+document.addEventListener('DOMContentLoaded', function() {
+ function handleSubmit(event) {
+ event.preventDefault();
+
+ const nickname = document.getElementById('nickname').value;
+ const password = document.getElementById('password').value;
+
+ window.location.href = '/assets/HypertextPages/list-rooms.nytl.html';
+
+ }
+
+ const form = document.querySelector('form');
+ form.addEventListener('submit', handleSubmit);
+});