Generally, when making a website, it is inevitable that you need to enter the contact email on the web page. But I don’t know, this will give those so-called online merchants an opportunity. They will use software or programs to search, and then put your email address into their contact database. In the future, there will be endless spam emails. "Your email is really a headache, and Juven is in agony too.
This time we will introduce a method, which is made using javascript. It does not affect your email link and can avoid searches by those software. The code is as follows:
<script language="javascript">
<!--
var name = "Your email account name";
var domain = "Email address";
document.write("<a href="mailto:"+name+"@"+domain+"">");
document.write(name+"@"+domain+"</a>");
// -->
</script>
in:
Enter your account name in name = "your email account name". For example, if yours is [email protected], then the account name is bill;
domain = "email address" is microsoft.com.
Very simple, right?