<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Document sans titre</title> <script language="Javascript"> function AlerteMAJ(e){ ct = e.keyCode?e.keyCode:e.which; sh = e.shiftKey?e.shiftKey:((ct == 16)?true:false); document.getElementById('alerte').style.visibility =(((ct >= 65 && ct <= 90) && !sh)||((ct >= 97 && ct <= 122) && sh))?'visible':'hidden'; } </script> </head> <body> <input type="password" name="txtPassword" onkeypress="AlerteMAJ(event)" /> <div id="alerte" style="visibility:hidden;color:red;"> Touche majuscule activée </div> </body> </html>
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question