(1)
<script language=javascript >
function enter()
{
if(window.event.keyCode==13)
{
document.Form1.IbtnLogin.click();
}
}
</script>
(2)
οnkeypress="if ((event.keyCode == 13)) event.keyCode=0;" <script language=javascript type=text/javascript> function enter() { if(window.event.keyCode==13) { document.Form1.IbtnLogin.click(); } } </script>