Easy.
HTML:
- HTML: Select all
<a href="logout.php" onclick="logout_confirm();">Logout</a>
javascript
:
- Code: Select all
function logout_confirm() {
if(confirm("Are you sure you want to logout?"))
return true;
else
return false;
}
Tell me if that works or not, didn't have a chance to test it.