In my opinion, a Contactform with a captcha is the saves bet, since some bots already "interpret" Javascript.
If you really want to use Javascript. set the mailto-link via script in the Onload.
window.onload = function(){
//do some really cool stuff
var at = String.fromCharCode(60 + 4);
document.getElementById("mailLink").href = "mai" + "lto:" + "great" + at +"solution" + ".com";
}
...
<a href="#" id="mailLink" >No Bots</a>
<!-- a more inconspicuous id would be better;-) -->
...
ORRR set the Mail onclick
<a id="test" onclick="window.location.href='mailto:c@c.qt'" href="#">Mail</a>
<!-- This Part'mailto:c@c.qt' should be obfuscated like above or better ;-) -->
ORRR Maybe better but slower
<a id="test" onclick="MagicFunction()" href="#">Mail</a>
<script>
function Magicfunction()
{
var ajaxMailResponce = ... some cool AJAX stuff to getmail adress as string
window.location.href = "mailto:" + ajaxMailResponce;
// Maybe the servercan return the mailto part also
}
<script>