JAVA Scripts


اقسام الجافا سكربت - Mine for JavaScript
تقويم الجافا - calendars آلات حاسبة - Calculators ازرار جافا - buttons مأثرات الخلفيات - Background Effects
شجرة المجلدات -Folder trees جافا حسابيه - Equivalents كوكيز - Cookies ساعات جافا - Clocks
رسائل الجافا - Messages جافا انشائية - Generators العاب جافا - games قوائم جافا - Forms
جافا باسوورد - Passwords بيانات الصفحات - Page Details جافا الملاحة - Navigation جافا متنوعة - Miscellaneous
شريط التمرير - Scrollers بيانات المستخدم - User Details - -



Home } Forms } Block Key Press




(Internet Explorer Only) Using the OnKeypress event, you can trap and prevent certain characters (repesented by ASCII decimal codes) from being entered in a form field. Just look up the ASCII code for any other characters you wish to block and add it to the script. Unfortunately, Netscape does not support this same functionality.
This field will not accept special characters: (like !@#$%^&* etc)


This field will not accept double or single quotes:


This field will only accept numbers:

JavaScript Source Code 3000: Forms: Block Key Press

Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as Note Pad or Simple Text) and save (Control-s or Apple-s). The script is yours!!!