aggiunti commenti

This commit is contained in:
Matteo Manzinello 2019-05-02 10:57:51 +02:00
parent 444bc775fb
commit 74b0961d30
1 changed files with 3 additions and 0 deletions

View File

@ -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;