admin管理员组文章数量:1293148
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).
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).
Share asked Aug 2, 2010 at 15:12 DfowjDfowj 7399 silver badges26 bronze badges1 Answer
Reset to default 11Yes, this is monly known as the blur
event.
This can be done in straight JavaScript, no need for Dojo
here:
window.onblur = function() {
//do something here...
};
本文标签: javascriptDojo What event fires when the pagewindow loses focusStack Overflow
版权声明:本文标题:javascript - Dojo: What event fires when the pagewindow loses focus? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741573009a2386119.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论