i would like to ask a question.
how can i pass the javascript generated code to the textbox "code" ?
I surf the internet but I cannot find the answer
I hope all of you can help me.
thanks!!
<form><input name="code" type="text" value="" >
<script>
function makeid()
{
var text = "";
var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
for( var i=0; i < 6; i++ )
text += possible.charAt(Math.floor(Math.random() * possible.length));
alert(text);
return text;
}
</script>
<input type="button" style="font-size:9pt" value="Generate Code" onclick="makeid()">
</input></form>