A couple of days I started to get acquainted with the scripts. Do not scold pliz, tell me my mistakes. I think they are both in shape and in script. Thanks in advance.
<head> <script language="JavaScript> var chars="ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; function genpass() { password = ''; for( i=0;i<6;i++ ) password = (Math.random(); document.getElementById('pass').value = password; } </script> </head> <body> <for name="first" ÁËÀ ÁËÀ<br> <input type="text" name="password"> <input type="button" name="pass" value="Test Input" onClik="genpass(this.form)"> </body> The usual generator. But something is wrong with the form. I realized that I had to enter the length function, how to do it correctly? pass =? (math floor (math random * lent)); so norms?