Files
WebDB/website/public/js/registerAndLogin.js
2017-01-20 16:14:32 +01:00

9 lines
292 B
JavaScript

function checkLoggedIn() {
if (confirm("You are already logged in!\nDo you want to logout?\nPress ok to logout.") == true) {
window.location.href = "logout.php";
} else {
window.location.href = "profile.php";
}
document.getElementById("demo").innerHTML = x;
}