Return to Snippet

Revision: 35564
at November 10, 2010 09:16 by dkevey


Initial Code
// this goes in the head section
<script type="text/javascript">
<!--
    function writeEmail(arg1, arg2, arg3, arg4) {
    var em = "<a href='mailto:" + arg1 + arg2 + arg3 + "?subject=" + arg4 + "'>" + arg1 + arg2 + arg3 + "</a>";
    //alert (em);
    document.write(em);}	
-->
</script>

// this goes in the body section
<script type="text/javascript">
<!--
    writeEmail("some", "email@gm", "ail.com", "some email enquiry from website");
-->
</script>

Initial URL

                                

Initial Description

                                

Initial Title
Email cloaking code

Initial Tags
email

Initial Language
JavaScript