JavaScript 參考手冊
focus() 方法可把鍵盤焦點(diǎn)給予一個(gè)窗口。
所有主要瀏覽器都支持 focus() 方法
確保新窗口獲得焦點(diǎn)(發(fā)送新窗口前):
確保新窗口沒有獲得焦點(diǎn)