mailto: feature and web browser window

Aug 01, 2014

When I do an email link, on a checkbox, it opens up another web browser window prior to opening up the email window. The person can send the email, but then they have this extra browser window to close also.

how do I stop that from opening up an extra browser window when it sends an email?

Thanks for your direction!

5 Replies
Joe Schultz

Here's some javascript that will close the extra window. The relevant lines are the last two:

var player = GetPlayer();
var email=player.GetVar("email");
var subject="My Subject";
var body_start=player.GetVar("notes");
var mailto_link='mailto:'+email+'?subject='+subject+'&body='+escape(body_start);
emailwin=window.open(mailto_link,'emailWin');
emailwin=window.close();

Note: "email" and "notes" are variables set up in Storyline.

This discussion is closed. You can start a new discussion or contact Articulate Support.