日期:2014-05-17  浏览次数:20877 次

怎么可以显示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) "