Login Button Not Redirecting to login.html #1197
Labels
hacktoberfest
This issue is under Hactoberfest Contribution
hacktoberfest-accepted
This PR is officially accepted in Hactoberfest 2024
hello @anuragverma108
The login button with the id="openPopup" is not properly redirecting to the login.html page. The issue is due to missing event handling in JavaScript.
Proposed Solution: Add the following script to handle the click event:
<script> document.getElementById('openPopup').addEventListener('click', function (e) { e.preventDefault(); // Prevent default anchor behavior window.location.href = 'login.html'; // Redirect to the login page }); </script>Steps to Reproduce:
Click on the login button.
Observe that the page does not navigate to login.html.
Expected Behavior: The button should redirect the user to the login.html page.
The text was updated successfully, but these errors were encountered: