In the javascript framework Dojo, is there an event that fires when the entire page loses focus?
If there is no event fired, is there another way to track the window losing focus? I want to be able to tell when someone clicks away from the page so that i can log the action (its an educational project, we're monitoring students actions for patterns and such).