is_focus
is_focus();
- this function is used to check whether the input focus is present in this window.
After testing, the function returns the result of its work to the script :
true
– window with focus
false
– window without focus