JavaScript 參考手冊
Input Text 對象
文本域獲取焦點:
focus() 方法用于文本域獲取焦點。
提示: 使用 blur() 方法讓文本域失去焦點。
所有主流瀏覽器都支持 focus() 方法。