Oct 3, 2001 #1 wuah Programmer Mar 15, 2001 42 DK Hi there It's easy to make a javascript write to your document using: document.write(variable) But what do I do if I want to write the variable into a textfield in a form? Thanks... Greetings Rasmus
Hi there It's easy to make a javascript write to your document using: document.write(variable) But what do I do if I want to write the variable into a textfield in a form? Thanks... Greetings Rasmus
Oct 3, 2001 1 #2 motte Programmer May 31, 2001 155 US if in the form: <form name=FORM1> <input type=text name=FOO value=""> </form> Then in the javascript: //page.formname.fieldname.value=variable document.FORM1.FOO.value=someJavascriptVariable I believe that is what you are looking for.. Mike Upvote 0 Downvote
if in the form: <form name=FORM1> <input type=text name=FOO value=""> </form> Then in the javascript: //page.formname.fieldname.value=variable document.FORM1.FOO.value=someJavascriptVariable I believe that is what you are looking for.. Mike
Oct 3, 2001 Thread starter #3 wuah Programmer Mar 15, 2001 42 DK This was a great help! THANKS! Upvote 0 Downvote