How can I detect if the window has the focus(current window) or not?Thanks
if (document.hasFocus()) alert('Document has focus!');
Help @azure_ss spread the word by sharing this article on Twitter...