I have a hyperlink on my web page:
<a id="contact" href="#">contact</a>
And then in jQuery I have:
$("#contact").click(function() {
document.location.href = "mailto:info@mail.com";
});
When a user clicks on a link, it opens in the same window, how can I open mail in another window? I tried adding target="_blank"in <a.., but then the contact form opened in the same window and my web page opened in another window ... How can I fix it?
source
share