Possible to check if a website is already open when you close a story?

Hi all, here is my situation:

Marketing manager wants a story that:

  1. If the story was launched from our corporate website, close the story when it's done (and thus the corporate website will already be opened).
  2. If the story was launched from a link we eMailed to a user, close the story when it's done and open our corporate website.

I can only figure out how to do it if I have two versions of the story with different coding under each "close" button.

Any ideas?

2 Replies
Jackson Hamner

You can open a new window with Javascript

 You can set a trigger to exit the course. Right before that trigger executes you can execute some javascript to open a new window/tab which can bring the user to your website. I dont know if you can set it to tell where you opened the course from. I would just set it to always open to your website regardless of where it came from.

 

The code would look something like this:

window.open(Website_url);

Here is some help: http://www.w3schools.com/jsref/met_win_open.asp

 Good Luck!