I'm using JavaScript mailto
function and when clicking on the button the mail loads in the same tab. How can I load the mail in a new tab?
Here's my code:
<input type="button" value="Apply" name="apply" onclick="mailJob('Sample');">
function mailJob(code)
{
window.location="mailto:example@gmail.com?subject="+code;
}