aggiunti commenti
This commit is contained in:
parent
444bc775fb
commit
74b0961d30
@ -16,7 +16,10 @@ mailtos.forEach(mailto => {
|
|||||||
mailto.addEventListener(
|
mailto.addEventListener(
|
||||||
"click",
|
"click",
|
||||||
event => {
|
event => {
|
||||||
|
// blocco l'esecuzione normale del mailto:
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|
||||||
|
// mostro un alert
|
||||||
let r = confirm("You have clicked mailto: " + mailto.href);
|
let r = confirm("You have clicked mailto: " + mailto.href);
|
||||||
if (r === true) {
|
if (r === true) {
|
||||||
location.href = mailto.href;
|
location.href = mailto.href;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user