当前位置: 代码迷 >> ASP >> 如何可以显示input中的值呢
  详细解决方案

如何可以显示input中的值呢

热度:137   发布时间:2012-03-29 12:53:12.0
怎么可以显示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) "
  相关解决方案