I've only been working with jQuery for a short time, and generally trying to get a bit of a handle on it. I can get the below code working on an html page, but not when using an external .js document. I want to move the script I have in the head to an external .js doc. Thanks for any help you can provide!
<code>
<html>
<head>
<script type="text/javascript">
var userName = "exampleaddress";
var emServer = "exampledomain.com";
var emLink = userName + "@" + emServer;
var tagLine = "?subject=Questions/Comments Re: exampledomain.com";
var emLink = userName + "@" + emServer + tagLine;
</script>
</head>
<body>
<script>
document.write("<a href='http://www."+emServer+"'>");
document.write(emServer);
document.write("<a>");
</script>
<br>
<script>
document.write("<a href='mailto:"+emLink+"'>");
document.write(userName);
document.write("<a>");
</script>
</body>
</html>
</code>