Action 'Presentation Close' Button Not Working

Hello,

I have inserted an action button to close the presentation once the quiz has been completed. It has a random slide quiz with 2 questions and then a report. The report is where I have added the button. However the presentation does not close when it is clicked. Any ideas?

Thanks

Clare

Hello,

If you use the “End Presentation” action for this button, it will not close the browser. When this action occurs, any further actions that affect learner results (such as submitting a quiz) will be blocked. This action is designed to notify an LMS that the lesson is completed or send the report to the HTTP report address if you are using an LMS or HTTP report, respectively.

If you want a button to close the browser, you will need to add JavaScript code to that button.

image
Here is the code for your reference:

prez.destroy();
window.close();

Hope this helps!
Hang