I'm working in Moodle and I have multiple activities that open in a new window through the file or SCORM activities. I'm trying to refresh the current page, when any new window is closed.
Something like this:
if(window is closed) {
window.location.reload()
}
But I know that doesn't work because window.open just opens a window it doesn't test if the window is already open and.