读书人

如何可以显示input中的值呢

发布时间: 2012-03-29 12:53:12 作者: rapoo

怎么可以显示input中的值呢
<script type= "text/javascript ">

function KeyPress(e,o){
var oEvent = (document.all) ? window.event : e;
if(oEvent.keyCode==13) alert(o.value);
}

</script>

<input name= " " type= "text " onkeypress= "KeyPress(this) " />

怎么可以显示input中的值呢

[解决办法]
onkeypress= "KeyPress(this.event,this) "

读书人网 >ASP

热点推荐