R&D in Blogger
Memo for IT tech. IT技術のメモ帳。
Search This Blog
2022/11/29
Add event listen to window focus in and out
var blurFuc = function() {
console.log(focus out)
}
var focusFuc = function() {
console.log(focus in)
}
window.addEventListener('blur', blurFunc);
window.addEventListener('focus', focusFunc);
No comments :
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments ( Atom )
No comments :
Post a Comment