论坛
Firefox 桌面版
Firefox for Android
附加组件
RSS
搜索
登录
注册
marion的个人空间
访问量
0
新鲜事
帖子
资料
https://www.firefox.net.cn/index.php?m=space&uid=28994
请问GreaseMonkey如何指定一个输入框获得焦点?
<input id="PIN" class="code" type="text" maxlength="6" name="PIN"></input>比如这是...
全文
回复
(
2
)
2014-08-01 11:19
来自版块 -
Firefox 扩展、插件、脚本和样式
◆
◆
表情
告诉我的粉丝
提 交
hzhbest
:
.focus()是获得焦点 .select()是获得焦点同时选中其中的文本,也就是输入的时候会覆盖原有文本。
(2014-08-04 14:33)
回复
marion
:
是不是用一句: document.getElementById("PIN").focus();
(2014-08-01 11:31)
回复
marion
加关注
写私信
0
关注
0
粉丝
283
帖子
返回顶部