// save to variable your email recepient
var _email = "info" + "@" + "domain.com",
_link = "mailto:" + _email;
// execute the variable using document.write
document.write(_email.link(_link));
// output
// <a href="info@domain.com">info@domain.com</a>
// Note: You can play around the var _email values to dynamic.
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.