I tried that originally but keep getting:
Error: Object expected.
I even tried:
.js:
var fname = "Michael";
var char1 = "@";
var domain = "Domain";
var char2 = ".";
var suf = "com";
var email = fname + char1 + domain + char2 + suf;
function HideEmail()
{
document.write('<a href="mailto:'...
Thanks for the feedback. However, I can't seem to get the page to render the results from the .js file.
I get no errors....but I also get nothing to appear.
Header:
<script type="text/javascript" src="scripts/emailnopass.js"></script>
Body:
<script type="text/javascript"...
The error message I get is:
document type does not allow element "a" here
The validator indicates the issue is with the > just before My Name and Contact
lines of code with issue:
document.write('<a href="mailto:' + email + '">My Name</a>');
document.write('<a href="mailto:' + email +...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.