<html>
<body>
<form name="nasami">
<input tabindex="30" value="1" type="text" >
<input tabindex="20" value="2" type="text" >
<input tabindex="10" value="3" type="text" >
<input tabindex="60" value="4" type="text" >
<input tabindex="50" value="5" type="text" >
<input tabindex="40" value="6" type="text" >
<input type="botton" value="aa">
</form>
</body>
</html>
我想写一个共通当我点击按钮处理完相关业务后吧光标放在页面上tabIndex值最小的控件上
用javascript怎么来写
请教各位大侠
<body>
<form name="nasami">
<input tabindex="30" value="1" type="text" >
<input tabindex="20" value="2" type="text" >
<input tabindex="10" value="3" type="text" >
<input tabindex="60" value="4" type="text" >
<input tabindex="50" value="5" type="text" >
<input tabindex="40" value="6" type="text" >
<input type="botton" value="aa">
</form>
</body>
</html>
我想写一个共通当我点击按钮处理完相关业务后吧光标放在页面上tabIndex值最小的控件上
用javascript怎么来写
请教各位大侠
解决方案 »
- 请教各位前端大牛一个让人无比揪心的问题
- showmodelessdialog的help参数的问题(帮助按钮)
- 求助:点击一个图片 弹出一个可以让用户选择路径的对话框,并把路径保存到一个文本框中
- FCKeditor中一个页面如何使用2个ReplaceTextarea
- 急求:为何这段javascript部能运行?---在线等
- 为什么不执行onClick????在线等!急!!!
- Ext树一直处于loading状态,数据加载不出来,可是后台的Json串已经生成
- 喜欢看网站的朋友请进.........,我的网站今天正式开通....
- 帮忙看看,怎么改正确。
- 请问字符串search的用法
- 很奇怪的问题! 不同的option全部显示在了一行。
- 关于用js代码重写html标签的问题,再次求助!
示例:function MinFocus()
{
var eles = document.getElementsByTagName("input");
var focusObj = null;
for(var i=0;i<eles.length;i++)
{
if(eles[i].getAttribute("tabindex"))
{
if(focusObj)
{
var ei = parseInt(eles[i].getAttribute("tabindex"));
var fi = parseInt(focusObj.getAttribute("tabindex"));
if(ei<fi)
focusObj = eles[i];
}
else
focusObj = eles[i];
}
}
if(focusObj)
focusObj.focus();
}
先判断ele.tagname 在 img,label之中。