Could anyone write me a simple Javascript routine to generate an n character alpha-numeric code? (& show what goes in the head and what in the body) I want to be able to alter the length of the code generated by changing a variable's value rather than by input.
I've got a Javascript form on the page that sends an email and I want to add a unique code to it.
All I need is a function that returns the code to a variable which I can then display in the form (displaying it in the form I can already do - I think, although I've not actually tried it yet).
I've looked through various free applet sites but all the ones I've found require a seed to be input at run time and that's no use to me. I've also looked through tutorial sites but they only show how to generate a random number, not an alphanumeric code.
Thanks.
I've got a Javascript form on the page that sends an email and I want to add a unique code to it.
All I need is a function that returns the code to a variable which I can then display in the form (displaying it in the form I can already do - I think, although I've not actually tried it yet).
I've looked through various free applet sites but all the ones I've found require a seed to be input at run time and that's no use to me. I've also looked through tutorial sites but they only show how to generate a random number, not an alphanumeric code.
Thanks.
