How to add an email link

I can't find anywhere how to add an email link. I put an HTML extension on the page but it doesn't work. I thought there used to be an action for adding an email link?

Discussion (4)

I believe they are adding that back into the next version of Lectora. I found a previous discussion on this topic: https://rockstars.elearningbrothers.com/discussion/423571/send-email-action

It is coming in v21 here is another thread

https://rockstars.elearningbrothers.com/discussion/283629/send-text-from-lectora-to-an-email-or-print-friendly-page

I got this to work:

window.location.href = "mailto:address@dmail.com";

thanks for the references @wheels and @cainam

Correction: It works when testing locally but does not work when published to the LMS. Not in any browser. Seems odd that it would work locally but not in an LMS. Tried it in chrome, firefox, and opera. Got a file not found error