onclick email link html javascript code example Example: on click goto mail <a class="mailto" href="mailto:[email protected]">Mail</a>