Forum Discussion
HannaGebert
12 months 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
12 months 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;