I was trying to use window.setInterval() API to check the result of document.hasfocus(). Normally, when we click to another browser tab or another applicati