The test link: Email our sales department.
The code:
window.onload = function (){ var addressCleaner = function (){ this.href = this.href.split("?")[0].replace("notspam", ""); this.onclick = function (){}; this.oncontextmenu = function (){}; }; var links = document.getElementsByTagName("a"); for (var i=0; i < links.length; i++){ if(links[i].href.indexOf("mailto:") !== -1){ links[i].onclick = addressCleaner; links[i].oncontextmenu = addressCleaner; } } };
Other examples:
An explanation for this example can be found at https://pipwerks.com/2009/02/01/obfuscating-email-addresses-revisited/