JavaScript: Display Email Address with Anti-Bot Catcher

// save to variable your email recepient var _email = "info" + "@" + "domain.com", _link = "mailto:" + _email; // execute the variable using document.write document.write(_email.link(_link)); // Browser output // <a href="info@domain.com">info@domain.com</a> // Bot output // document.write(_email.link(_link)); // Note: You can play around the var _email values to dynamic.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.