No, you cannot do this. It's impossible. In a JavaScript environment, there is no access to the host computer to tell if anything is configured to handle links mailto:. This is so far beyond your responsibility of Webapp that you should not and cannot worry about it. This is not your job on the page to find out if the user knows how to send emails.