javascript - Document.location.href Problem in IE -


while developing app requirement open outlook send mail. iam using using follwing code

document.location.href="mailto:"+variable

above code opens outlook in both firefox n ie ie redirects document.location.href url not possible opened in browser. behavior not found in firefox opens outlook page send mail.

can provide fix ie avoid url redirection.

do lack of real code using, i'm guessing using link (<a> element), , yre not returning false in onclick event handler:

<a href="#" onclick="sendmail(); return false;">send email</a> 

Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -