Assess API Events
focused
Fires whenever the learner has the browser window and tab open when the assessment comes into focus using the keyboard or mouse.
You would want to be notified about this event firing, because you want to know when the learner has left the browser window to another application, and returned.
Examples
itemsApp.on('focused', function () {
console.log('This code executes when the learner returns to the browser window.');
});
Related articles
- The
unfocused
event, to detect when the learner is not interacting with the assessment browser window.