How can I do this:
var newContactEmail = "abc@cc.com";
document.getElementById('contactEmail').innerHTML = '<a href="mailto:"' + newContactEmail + '">' + newContactEmail + '</a>';
When I click on the mail link, it opens but the “To” field is blank.
Instead of
href="mailto:"' + newContactEmail + '" 'tryhref="mailto:' + newContactEmail + '" '.. Else it would look like href = “mailto:”someemail@a.com .