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: 7 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!!!!
Sign In or Register to comment.

So You Wanna Be An eLearning ROCKSTAR?

We're all fans of eLearning here! Want to become an eLearning ROCKSTAR? Just click on one of the buttons below to start your rocking journey!