I have a textarea that gets populates when users click on hyperlinks.
What I'm trying to do via one of the links is insert a mailto: hyperlink, but I can't get it to work:
here's my .js code:
document.getElementById('servicestext').value = "Click the sales link here
'<a href="' + mailto:sales@sales.com + '">' + sales@sales.com + '</a>' to help us help you!";
The error I get back is object expected which points to the html page containing the hyperlink, not to the .js file.
What I'm trying to do via one of the links is insert a mailto: hyperlink, but I can't get it to work:
here's my .js code:
document.getElementById('servicestext').value = "Click the sales link here
'<a href="' + mailto:sales@sales.com + '">' + sales@sales.com + '</a>' to help us help you!";
The error I get back is object expected which points to the html page containing the hyperlink, not to the .js file.