JIT
Logout to login page
if i pressed logout button i will return to login page on this code: <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Parent Access - Find Student</title> <link rel="stylesheet" href="parent.css"> <!-- Use new CSS --> </head> <body> <div class="access-container"> <h2>Find Student Record</h2> <p>Please enter the student's details to view their progress.</p> <input type="text" id="studentFullName" placeholder="Enter Student's Full Name"> <input type="text" id="studentIdNumber" placeholder="Enter Student's ID Number"> <button onclick="verifyStudent()">View Dashboard</button> <p id="accessErrorMessage" class="error-message"></p> <p><a href="login.html">Back to Login</a></p> </div> <script src="parent.js"></script> <!-- Use new JS --> <script src="login.js"></script> <!-- Include login.js for getUsers function --> </body> </html>

Okay, let's add a logout button to your parent.html page that redirects to login.html.

Now, when you click the "Logout" button on the parent.html page, it will redirect you to login.html.

Updated files
v1