Skip to content

Commit cb5ba3e

Browse files
authored
Create login.js
1 parent 1e454c6 commit cb5ba3e

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

login.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
function handleRegister(event) {
2+
event.preventDefault();
3+
alert("Registration Successful! Redirecting to Login...");
4+
window.location.href = "login.html";
5+
}
6+
7+
function handleLogin(event) {
8+
event.preventDefault();
9+
alert("Login Successful! Redirecting to Dashboard...");
10+
window.location.href = "main.html";
11+
}

0 commit comments

Comments
 (0)