readOnly换行的小问题,各位帮我 以->箭移动换行时跳过以上所写的image或disbled或readonly,现在以上的都可以成功,只有readonly型的,不能跳过 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 你先输出input中readOnly及其他属性值和别的标签属性有什么不同,在定 <script>function func_key_down(){ var src_obj = window.event.srcElement; if (window.event.keyCode == 39) { if (src_obj.type != "image" && src_obj.disabled != 1 && src_obj.readOnly != 1 && src_obj.tagName != "A" && src_obj.tagName != "TEXTAREA") { window.event.keyCode = 9; } }}window.document.onkeydown = func_key_down;</script><form><input type=text ><input type=text disabled><input type=text ><input type=text readonly><input type=text ></form>源码如上,以键盘右键键头换行,遇disabled,readonly的跳过,disabled但readonly不能跳过,请各位帮忙 这个句子是什么意思 javascript中this的用法 求一個用JS打開OUTLOOK看郵件內容的代碼 ext API中缺少属性 请教一个 复选框 计算值的 问题!谢谢各位 <script> 中的 modules属性是什么意思 javascript的location.assign("URL")和replace("URL")有何不同? 在360浏览器textarea获取不到焦点 各位快来帮我一下。 addEventlistener的菜鸟问题,送分送分 关于单元格宽度问题求解? javascript超难问题求助:A窗口的form提交到一个新窗口B,如何在B中刷新A的某一个框架页C????
function func_key_down()
{
var src_obj = window.event.srcElement;
if (window.event.keyCode == 39)
{
if (src_obj.type != "image"
&& src_obj.disabled != 1
&& src_obj.readOnly != 1
&& src_obj.tagName != "A"
&& src_obj.tagName != "TEXTAREA")
{
window.event.keyCode = 9;
}
}
}
window.document.onkeydown = func_key_down;
</script><form>
<input type=text >
<input type=text disabled>
<input type=text >
<input type=text readonly>
<input type=text >
</form>源码如上,以键盘右键键头换行,遇disabled,readonly的跳过,disabled但readonly不能跳过,请各位帮忙