diff --git a/src/mailgo.js b/src/mailgo.js index 4aa6fb1..b9ab741 100644 --- a/src/mailgo.js +++ b/src/mailgo.js @@ -16,7 +16,10 @@ mailtos.forEach(mailto => { mailto.addEventListener( "click", event => { + // blocco l'esecuzione normale del mailto: event.preventDefault(); + + // mostro un alert let r = confirm("You have clicked mailto: " + mailto.href); if (r === true) { location.href = mailto.href;