<a href="#" class="cryptedmail" data-name="david" data-domain="davidlane" data-tld="io" onclick="window.location.href = 'mailto:' + this.dataset.name + '@' + this.dataset.domain + '.' + this.dataset.tld; return false;"></a>
Paired with this CSS:
.cryptedmail:after { content: attr(data-name) "@" attr(data-domain) "." attr(data-tld); }
Which results in a clickable link that opens whatever is set up to handle mailto: links (1).
1: https://nexus.armylane.com/files/email-crypted.png
<a href="#" class="cryptedmail" data-name="david" data-domain="davidlane" data-tld="io" onclick="window.location.href = 'mailto:' + this.dataset.name + '@' + this.dataset.domain + '.' + this.dataset.tld; return false;"></a>
Paired with this CSS:
.cryptedmail:after { content: attr(data-name) "@" attr(data-domain) "." attr(data-tld); }
Which results in a clickable link that opens whatever is set up to handle mailto: links (1).
1: https://nexus.armylane.com/files/email-crypted.png