<html> <head> <script language="javascript"> function blockChar(e) { var keyVal = (window.event) ? event.keyCode : e.keyCode; if (window.event) keyVal = window.event.keyCode; if ((keyVal > 64 && keyVal < 93)) { return false; } } </script> </head> <body onload="javascript:document.getElementById('txt').focus();"> <input type="text" id='txt' onkeydown="return blockChar(this);" /> </body> </html>
Wednesday, February 2, 2011
Restrict Alphabet Input In TextBox
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment