This involves several steps, none of which is very long or complicated.
mmt.js is short and contains:
<a id="mto" href="mailto:myusername@myemailserver">Click to pop up mailto:</a><br/>';document.getElementById("mto").focus()}
We are now ready to proceed to the second step, modifying our html
page. This requires modifying the head section by
including the following line:
I am not sure why, but, as least for me, "/path/to/mmt.js" had to point to a file on the same server.
In the body of the html page, near where you want the
"mailto:" popup to appear, place the following lines:
<button onclick="createMailto()">Contact Webmaster</button>
The words "Contact Webmaster" above seemed appropriate to me. You may replace this with anything you want. Just do not put your actual email address anywhere within the html page or it likely will be harvested by spambots.
If things are working properly, clicking on the anchor, "Contact Webmaster", should generate another anchor which says "Click to popup mailto:" and clicking on that should bring up your mailto client. The page, emmestech.org, works for me. How to designate your mailto client is beyond the scope of this article, but there is lots of documentation available elsewhere.