Forum Discussion
HannaGebert
2 years agoCommunity Member
Java Script for an e-mail
Hello everyone,
I am looking for a Java Script block for a ready-made e-mail with a subject and a text. So the learner clicks on a button in Storyline and then a prepared e-mail should open, so th...
DaanGroen
2 years agoCommunity Member
Does this work? (i'm also new to Javascript)
var subject = "Your email subject here";
var body = "Your email body text here";
var mailtoLink = "mailto:?subject=" + encodeURIComponent(subject) + "&body=" + encodeURIComponent(body);
window.location.href = mailtoLink;