mailto: feature and 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!

6 Replies
Ashley Terwilliger-Pollard

Hi Beth,

What browser are you using to view the course? Are you hosting it within a web server or LMS? This is not occurring in a very simple project I upload to a testing web server and it just opens up an outlook email window.

If you're hosting it in an LMS it may be forcing a new window to open to complete the action, and you could test this a bit further using a site like SCORM Cloud, which is an industry standard testing method for SCORM content.

Ashley Terwilliger-Pollard

Hi Beth,

I used IE11, Chrome 36 and Firefox where it all worked as expected. What IE version do you think most of your users are accessing the course through? Unfortunately it's likely an IE setting that would need to be changed, and you may want to connect with your IT team about it - show them the results in Firefox to demonstrate how it's supposed to behave.

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.