javascript - Is there a way to tell if an end user will be able to handle links? -
javascript - Is there a way to tell if an end user will be able to handle <a href=“mailto:###”> links? -
i'm trying adapt situation in user has no email client installed (like in case: utilize opera's internal mail service client, if click mailto: link net explorer won't anything.))
at moment not possible. closest thing reply ended this:
<a id="mail-link" href="mailto:the@email.it" onclick="if (this.hasattribute('data-clickedonce')) {this.setattribute('href','mailform.php?to=the@email.it');} this.setattribute('data-clickedonce','yes');">send mail</a> the script embedded in tag changes href on sec press. theory is: if user has no way handle mail service protocol, nil happens , he/she seek click link time.
javascript cross-browser mailto
Comments
Post a Comment