close window button
Nov 19, 2012
Does anyone know of a way to add a button in ppt/Articulate to close the browser window? I looked into the Hyperlink and Actions options but cannot add the javascript:
javascript:window.close()
Maybe a Flash button... Is there a quick way to add a close button in ppt?
I did find this thread:
http://community.articulate.com/forums/p/3494/18630.aspx#18630
I know I could add a close tab. I am wondering about a web object linking to another web page then inserting the javascript in there to close the window. I was hoping there is a quicker way.
14 Replies
There was another question on this. I do have a flash close button. I'll find it and post as soon as i find it.
I've now got a hyperlink from a button in Articulate to a web page that has javascript to close the window except it opens in a new window. If I could get it to open in the same window that would be great. Note we are only using IE.
I think this is what you've been looking for. And thanks to Brian Houle for his help with getting this.
fixed
OK I put it in the LMS and it works! Thanks guys.
I'm sorry, but I don't understand how I can implement this.
I'm also looking for a button to close the window and I downloaded the Exit Button.zip that is mentioned above, but I don't know where to store it and how to get the button/ trigger into my project.
Some additional help or a tutorial would make me happy!
Hi Michael and welcome to Heroes!
This thread is a bit older, so I'm not sure that any of them are still subscribed. You may want to send them a private message, just in case. Also, I suspect that they may be using the Presenter 09 SDK, and if you're using Presenter 13 there is not an SDK available. There is the ability within Presenter 13 to add an Exit tab which would close the course, and you'll see that described here.
Hi Ashley, I have a presenter project where the built in exit tab isn't working throughout the presentation except on the last slide. This occurs on my clients and my development machine in all browsers (except firefox of all things). Is there anything that would be interfering?
I've had success using a hyperlink attached to a shape and calling "javascript:opener.CloseWindow()" but it opens an additional blank window as well as exiting the course.
Note: I'm using the flash widget for now, but I need a solution for tablet as well.
Hi, Jean-Guy --
Thanks for your question! Can you please confirm that you are testing your published output in the intended environment? Also, as this thread is a bit older, you would be welcome to start a new thread if you wish, and if possible, it would be a great idea if you could share your file so that members of the community can take a closer look and do some testing for you.
I also wanted to note that we are unable to provide support for JavaScript coding, however, there are lots of members in the community who are JS gurus, so hopefully they will be able to offer some assistance. :)
So it turns out the exit button was failing because it's directly tied to the setscore in the scorm api. Let me explain (it's alot I know, but bare with me).
The course we have is set to complete when all slides are visited, but we have two quiz questions in the course that we don't want tracked. Unfortunately, the course wasn't setting completion even if all slides were visited. We fixed this by setting the passing score to zero in quizmaker. But we still had an issue with a score of ZERO being reported. I got around that by simply commenting out the setScore api in the lmsapi.js. A drastic measure, but all went well. Then we noticed the exit button wouldn't work until we got to the last slide. It wasn't until today that I decided to retrace my steps to see when the exit button stopped working. I then discovered that when I turned the setscore api back on, the exit button began to work properly again.
So I guess my question now is how can I stop the quizmaker from reporting any score to the lms and why is the exit button relying on the setscore api function?
This is not an issue in Scorm Cloud, It behaves as it should. But my clients LMS is reporting the score and they are able to produce a report of the api sending the score to their lms. The only time it didn't report a score was when I disabled the api function.
PS. the client doesn't have this issue with storyline courses.
Hi, Jean-Guy -- Thanks for your response and for the update! As I mentioned, I am not equipped to support any modifications to the published output, however you are welcome to share your file here if you would like members of the community to assist with their suggestions! :)
Having trouble with a close button in Storyline 2. It will not close browser window. But my LMS is reporting that content is complete. I have tried the following on my PC that I am publishing from:
64-bit Windows: C:\Program Files (x86)\Articulate\Articulate Storyline\Content\lms
Configuration.js I have edited this file like below
Change this line: var EXIT_BEHAVIOR = "SCORM_RECOMMENDED";
To: var EXIT_BEHAVIOR = "ALWAYS_CLOSE";
Not sure why buttons will work sometimes and then not. I have 8 modules and 3 of the eight modules will not close by clicking the close button. Same button and trigger???
Hi Paula,
We're not able to offer support for any modifications to the published output, so I can't say why the code would work for some and not for others. You may want to review the information here in regards to the Exit button and how it may not always work as expected.
Not sure if this is your issue, but the exit button won't work unless it's in a popup, but on an lms it should work regardless. You could try executing a javascript trigger to close the window.
This discussion is closed. You can start a new discussion or contact Articulate Support.