I need help with this logout link i made
When you click it, it should show a confirm box, but it doesn't.
Heres the Javacript
<script language='javascript'>
function confirm(){
var f = confirm("Are You Sure You Want To Logout?");
if(f){
return true;
}
else{
return false;
}
}
</script>
And heres the link
<a href='logout.php' onClick='return confirm()'>logout</a>
Plz help??