Participant
August 12, 2023
Question
Help with a close window script button
- August 12, 2023
- 1 reply
- 219 views
Hi guys,
Im using a button at the end of a course to close the window or close the course, however, is not working on the platform I'm using, I already try by adding the interaction--Click--close the course, but nothing.
now I just added the script
function cerrarCurso() {
window.close();
if (window.self !== window.top) {
window.parent.close();
}
}
document.getElementById('Botón_46').addEventListener('click', cerrarCurso);
And still nothing, it does not close with the button, I have to close the window manually.
I'm using the recent Captivate (vs12)
Thanks!
