per continuare ...![]()
provato su IE6, IE7, Firefoxcodice:<html> <head> <script type="text/javascript"> function goToField(e) { var KeyID = (window.event) ? event.keyCode : e.keyCode; var strkey = String.fromCharCode(KeyID); var r=/([a-zA-Z0-9])+/g; if (r.test(strkey)) { document.getElementById("laForm").campo.focus(); } } if (document.layers || (document.getElementById && !document.all)) document.captureEvents(Event.KEYPRESS); document.onkeydown=goToField; window.onkeydown=goToField; </script> </head> <body> <form id="laForm"> <input type="text" name="campo" /> </form> link numero uno link numero due </body> </html>
Per Opera occorre fare qualcos'altro, perchè non funziona.
Non ho molto tempo per cercare perchè![]()
HTH
Zappa