email link does not work

akim6794
akim6794 Community Member Posts: 2 ☆ Roadie ☆
I am using Lectora 18.2.1.
I want to link to email. However it doesn't work.
I made a button and added a code as below.

Name: OnMClkRunJS
Trigger: Mouse Click
Action : Run Javascript
mailto:[email protected]

Please check this.

Thanks!

Aenglan


Answers

  • nmaharaj
    nmaharaj Moderator Posts: 10 eLearning ROCKSTAR Stage Manager
    Try this: (Action on the Button)
    Trigger: Mouse Click
    Action : Run Javascript

    function sendEmail()
    {
    window.location = "mailto:[email protected]";
    }
    sendEmail();

  • akim6794
    akim6794 Community Member Posts: 2 ☆ Roadie ☆
    I added the code and it works!!!

    Thank you!!!!