Skip to content

Commit

Permalink
Deployment 1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
sayanbose-100 committed Oct 15, 2024
1 parent fdb72f4 commit c591de1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,15 @@
<body>
<h1>This is an index page</h1>
<h2>
<a href="login.php">Login</a>
<button id="login-btn">Login</button>
</h2>
<script>
const login_btn = document.querySelector("#login-btn");

login_btn.addEventListener('click', () => {
window.location.href = "login.php";
})

</script>
</body>
</html>

0 comments on commit c591de1

Please sign in to comment.