/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// 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>