So sehen Sie, ob sich das Fenster auf JS konzentriert

var focused = document.hasFocus();
Selfish Snake