js实现很简单,获取浏览器焦点,以下是实现方式: window.onload = function(){ setTimeout(function() { this.focus(); this.blur(); alert(1); },3000); }
来自:https://blog.csdn.net/qq_38499671/article/details/109238034