Oct 3, 2001 #1 wuah Programmer Joined Mar 15, 2001 Messages 42 Location 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 Joined May 31, 2001 Messages 155 Location 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 Joined Mar 15, 2001 Messages 42 Location DK This was a great help! THANKS! Upvote 0 Downvote