0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 3.144.98.61


Current Path : /proc/thread-self/root/var/www/html/ycm_stop/
Upload File :
Current File : //proc/thread-self/root/var/www/html/ycm_stop/test.html

 <html>

<head>

    <title>allwon only alphabets in textbox using JavaScript</title>

    <script language="Javascript" type="text/javascript">

 

        function onlyAlphabets(e, t) 
		{

            try 
			{

                if (window.event) 
				{

                    var charCode = window.event.keyCode;

                }

                else if (e) 
				{

                    var charCode = e.which;

                }

                else 
				{ 
					return true; 
				}

                if((charCode > 64 && charCode < 91) || (charCode > 96 && charCode < 123))

                    return true;

                else

                    return false;

            }

            catch (err) 
			{

                alert(err.Description);

            }

        }

 

    </script>

</head>

<body>

    <table align="center">

        <tr>

            <td>

                <input type="text" onkeypress="return onlyAlphabets(event,this);" />

            </td>

        </tr>

    </table>

</body>

</html>