title: Javascript Mailto without Href
body: <p>I have requirement where clicked on link it should open the mail to be sent the user on whose name i clicked. i am doing it by constructing the Anchor tag and by setting the href attribute, problem i am facing is , our platform has a function which shows alert asking do you want to navigate or no. this alert should not come when i click on my link, but unfortunately it comes when i clicked on link. is there alternative for this? 
  [Note : i cannot change the platform code]</p>
  
  <pre><code>var htmlElement = $('&lt;a class="b"&gt;('+_email+')&lt;/a&gt;').attr('href','mailto:'+_email);
  </code></pre>
  
  <p>i also tried jquery click , but no use</p>
  
  <pre><code>$('.b').click(function() {
          window.location = $(this).attr('href');
      }).click();
  </code></pre>