当前位置: 首页 > 网络学院 > 客户端脚本教程 > HTML DOM > HTML DOM focus()方法
The focus() method is used to give focus to a button.
focus() 方法可让按钮得到焦点
buttonObject.focus() |
The following example sets focus on a button:
下面的举例将让按钮获得焦点
<html> <form> </body> |
Set and remove focus from a button
设置并取消对按钮的焦点