Files
PasswordManager/public/logout.js
RochesterX 6e820464d5 Initial
2025-11-12 10:13:24 -05:00

7 lines
193 B
JavaScript

document.getElementById("logoutButton").onclick = async e => {
console.log("here");
e.preventDefault();
localStorage.removeItem("token");
window.location.href = "login.html"
};