无javascript设置输入控件焦点 [英] Setting input control focus without javascript
本文介绍了无javascript设置输入控件焦点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
$ b 编辑:该问题是关于HTML< 5
解决方案
没有。令人遗憾的是,JavaScript是必需的,因为它在客户端动态地修改浏览器(JavaScript是用来做什么的)。
Is there a way to set the focus in a specific HTML input (a textarea control, actually), without using Javascript?
EDIT: Is possible in HTML5 but the question is about HTML < 5
解决方案
Nope. Sadly JavaScript is required, because it's dynamically modifying the browser on the client-side (what JavaScript was made for).
这篇关于无javascript设置输入控件焦点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文