GPDynamics
IS-IT--Management
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 + '">Contact</a>');
Full Code in Header:
<script type="text/javascript">
var name = "Michael";
var char1 = "@";
var domain = "Domain";
var char2 = ".";
var tld = "com";
var email = name + char1 + domain + char2 + tld
function HideEmail()
{
document.write('<a href="mailto:' + email + '">My Name</a>');
}
function HideContactEmail()
{
document.write('<a href="mailto:' + email + '">Contact</a>');
}
</script>
Any help would be greatly appreciated!
Thanks!
Michael
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 + '">Contact</a>');
Full Code in Header:
<script type="text/javascript">
var name = "Michael";
var char1 = "@";
var domain = "Domain";
var char2 = ".";
var tld = "com";
var email = name + char1 + domain + char2 + tld
function HideEmail()
{
document.write('<a href="mailto:' + email + '">My Name</a>');
}
function HideContactEmail()
{
document.write('<a href="mailto:' + email + '">Contact</a>');
}
</script>
Any help would be greatly appreciated!
Thanks!
Michael