Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Dynamic generation (CSS) of a contact e-mail address as a measure against simple scan bots
<a data-name="info" data-domain="wordpress-handbuch" data-tld="com" data-subject="Betreffzeile" href="#" class="verschleierteemailadresse" onclick="window.location.href = 'mailto:' + + '@' + this.dataset.domain + '.' + this.dataset.tld + '?subject=' + this.dataset.subject"></a>
.verschleierteemailadresse:after {
content: attr(data-name) "@" attr(data-domain) "." attr(data-tld);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment