JulioPalacios
3 years agoCommunity Member
Is there anyway to execute javascript when a learning module is closed?
I'm creating a self-assessment tool and I'm using javascript to send variables to a Google sheet. I'd like a way to track some information on learners who are not completing the assessment tool. Specifically how far into the assessment they go before they close out of it.
I have one question per slide and have T/F variables that trigger when the learner hits the next button.
Is there anyway to have a javascript code trigger when the user simply closes the module? I feel like I could build a close button and assign the javascript to trigger when it's used, but suspect most won't use it instead of simply closing their tab.