I would like to run javascript down using href .
But by clicking on the supposed Log Out link, nothing happens. If I keep the cursor on the link it shows me the destination as javascript:logout()
function logout() {
var choose = confirm("Deseja realmente sair?");
if (choose == true) {
location="Main.html";
} else {
}
<nav id="menuOp">
<a href="javascript:logout()">Log Out</a></br>
<b>Olá, #</b>
</nav>