有的话,请给出代码拉
谢谢了哦
大家帮帮忙阿
------解决方案--------------------------------------------------------
up
------解决方案--------------------------------------------------------
<body onkeydown= "if(event.keyCode==116){reload.click()} ">
<a id= "reload " href= "seluser.aspx " style= "display: none "> reload.... </a>
呵呵,只有这个键盘输入F5的
------解决方案--------------------------------------------------------
<body onkeydown= "if(event.keyCode!=“”){reload.click()} ">
你试试看看判断它输入的不为空就触发事件
------解决方案--------------------------------------------------------
function handleEvent(oEvent)
{
alert(oEvent.type);
alert(oEvent.keyCode.toString());
alert(oEvent.charCode.toString());
}
<textare id = "txtInput " rows= "15 " clos= "50 " onkeydown= "handleEvent(event) " onkeyup= "handleEvent(event) " onkeypress= "handleEvent(event) "> </textare>
------解决方案--------------------------------------------------------
100分好多啊 帮你顶啊。
------解决方案--------------------------------------------------------
<textarea> </textarea> 少了个a 不好意思
------解决方案--------------------------------------------------------
<script>
function checkLen()
{
var obj = document.getElementById( "txt_content ");
var content = obj.value;
document.getElementById( "divinfo ").innerHTML = " <font color=red> 您已经输入了 " + content.length + "个字符 </font> ";
}
</script>
=======================================
<asp:TextBox id= "txt_content " onKeyUp= "checkLen(); " runat= "server " TextMode= "MultiLine " Height= "128px " Width= "240px "> </asp:TextBox>