1 <INPUT TYPE="button" VALUE="<% emt($label) %>" onclick="randomPass()">
2 <SCRIPT TYPE="text/javascript">
3 function randomPass() {
5 var pw_set='<% join('', 'a'..'z', 'A'..'Z', '0'..'9' ) %>';
9 pass += pw_set.charAt(Math.floor(Math.random() * pw_set.length));
11 document.getElementById('<% $id %>').value = pass;
16 my $label = shift || 'Generate';