<script type="text/javascript"  language="javascript">
function   EnterRedirect(Obj)
{
    if(event.keyCode==13)
        Obj.click();
}
</script>



<input onkeydown="EnterRedirect(Submit) type="password" />

另一方法:

if(event.keyCode==13) 

document.all('ImageButton1').focus(); 
document.all('ImageButton1').click(); 

</script>
 
'ImageButton1'为控件名,客服端或者服务器端控件都行。。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-17
  • 2021-11-01
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-11
  • 2021-10-21
相关资源
相似解决方案