onKeyPress Event Unknown 5:58:00 pm Ehm.... campura aduk nih blog, apa yang sedang ingin aku tulis ya itu yang aku tulis jadi ya beginilah..... campur aduk Membuat field textarea tampak lebih dinamis menggunakan "onKeyPress" dari Javascript Code onKeyPress Event <html> <body> <script type="text/javascript"> function noNumbers(e) { var keynum var keychar var numcheck if(window.event) // IE { keynum = e.keyCode } else if(e.which) // Netscape/Firefox/Opera { keynum = e.which } keychar = String.fromCharCode(keynum) numcheck = /\d/ return !numcheck.test(keychar) } </script> <form> <input type="text" onkeypress="return noNumbers(event)" /> </form> </body> </html> Share this Share on FacebookTweet on TwitterPlus on Google+
EmoticonEmoticon