Here’s what you’d need to add instead of typing out an email address. On page load, the document.write command writes our email variable and small function, and outputs our email address. Since I’ve been using it, I’ve had no spam, even across client websites too.
var emailAddress = ('[email protected]' + 'yourdomain.com'); document.write('<a href="mailto:' + emailAddress + '">' + emailAddress + '</a>');
Type out the name without the @ symbol:
Use an image of your email address:
<noscript><img src="img/email-address.jpg" alt="My Email"></noscript>
All you need to do is include the snippet in your page source, and replace the email address ‘[email protected]’ and ‘yourdomain.com’.