Hi, Does anyone have any experience using onkeydownwith an <input type="text" within an FCKDialog? I've been playing with the example below. It works for me in a normal html page but not in one of my FCKDialogs.. Thanks
<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> </head> <body> <form> Type some text (numbers not allowed): <input type="text" onkeydown="return noNumbers(event)" /> </form> </body>