Javascript onEnter

Code

<script language="JavaScript">

NS4 = (document.layers) ? true : false;function checkEnter(event)

{

var code = 0;

if (NS4)

code = event.which;

else

code = event.keyCode;

if (code==13)

document.myform.submit();

}

</script>

Example

<input name="Username" onKeyUp="checkEnter(event)" type="text" />
You can leave a response, or trackback from your own site. Responses are currently closed, but you can trackback from your own site. You can skip to the end and leave a response. Pinging is currently not allowed. Both comments and pings are currently closed.
Powered by WordPress | Shop Free T-Mobile Phones Online | Thanks to Verizon Phones without Contract, MMORPG Games and Sell Car